This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!empty($_POST['submit']) && $_POST['submit'] == 'up_settings' && isset($_POST['settings'])) { | |
$fields = array_diff($_POST['settings'], array('')); | |
foreach ($fields as $key => $value) { | |
self::update_general_settings($key, $value); | |
} | |
} | |
wp_nonce_field( 'wpestate_regular_search', 'wpestate_regular_search_nonce' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; | |
jQuery(document).ready(function() { | |
"use strict"; | |
(function($) { | |
$('input.psych-reg-button[type=submit]').on('click touch', '', function(event) { | |
var qform = $(this).closest('form')[0]; | |
var data = new FormData(qform); | |
for (let entry of data) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $psych_form; | |
$psych_form = new PsychForm(); | |
class PsychForm | |
{ | |
public $current_user; | |
public $current_template; | |
public $templates = [ | |
'reg' => ['template' => 'page-psych-reg.php', 'url' => ''], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$product = wc_get_product( $post->ID ); | |
// attribute | |
$razmer = array_shift( wc_get_product_terms( $product->id, 'pa_razmer', array( 'fields' => 'names' ) ) ); | |
$variation_ids = $product->get_children( $args = '', $output = OBJECT ); | |
foreach ($variation_ids as $key => $pv_id) { | |
$pv = new WC_Product_Variation($pv_id); | |
$pv_array[] = $pv; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_DISPLAY', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
// role | |
add_action('init', 'dsgsdhgsafasfasfasf'); | |
function dsgsdhgsafasfasfasf($value='') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/////// ADMIN PAGE SETTINGS AND IMPORT EXPORT | |
class Divie_Import_Export_XLS | |
{ | |
function __construct() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('add_meta_boxes', 'divie_desc_down_add_custom_box'); | |
function divie_desc_down_add_custom_box(){ | |
$screens = array( 'product' ); | |
add_meta_box( 'divie_desc_down_sectionid', 'Описание под кнопкой', 'divie_desc_down_meta_box_callback', $screens, 'side', 'low' ); | |
} | |
// HTML код блока 222 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////(window)//////////////////////////////// | |
cd /d d:/ | |
IPconfig | |
find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/" -- tree | |
////////////////////////////////(mysql)//////////////////////////////// | |
mysql -u root -p wp_online3 < D:\Pro\database.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", | |
"font_size": 8, | |
"ignored_packages": | |
[ | |
"phpfmt", | |
"Vintage" | |
], | |
"material_theme_compact_sidebar": true, | |
"preview_on_click": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$text_html = apply_filters( 'the_content', carbon_get_term_meta( $category->term_id, 'crb_mini_text_cat' ) ); | |
// для всех страниц администратора. | |
add_action('admin_head', 'yamaps_shortcode_tmpl'); | |
// срабатывают условные тэги |