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 | |
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 | |
$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 | |
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
; | |
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 | |
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
<?php | |
/*======================================================== | |
* add field woo | |
========================================================*/ | |
add_action('woocommerce_product_options_general_product_data', 'divie_woo_add_custom_fields_euro'); | |
function divie_woo_add_custom_fields_euro() | |
{ | |
global $product, $post; | |
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 | |
// добавить к запросу | |
function devise_number_displayed_posts($query) { | |
if (is_admin() || !$query->is_main_query()) { | |
return; | |
} | |
if (is_tax('category-catalogs')) { | |
$query->set('posts_per_page', 16); | |
return; | |
} |
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
document.addEventListener('DOMContentLoaded', function(){ | |
EnviarCorreo(); | |
}); | |
function EnviarCorreo() | |
{ | |
jQuery.ajax({ | |
type: "POST", | |
url: 'coordinates.php', | |
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 | |
$f = new NumberFormatter("ru", NumberFormatter::SPELLOUT); | |
echo $f->format(123456); | |
$content = "Статус посылки НП: </br>" | |
."Выдано в месте YYYY </br>" | |
."Ориентировочная доставка до Отделения ЧЧЧЧ dd--mm </br>" | |
."Ждите дополнительное уведомление при прибытии</br>"; |