This file contains 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
Array | |
( | |
[token] => Array | |
( | |
[paymentData] => Array | |
( | |
[data] => w6sBUf2zNxFvl2o/clBf3gPswAAOL9zbkgLA6HbdjUfAL2LlHkTWtyWealwPVCP56jmODRivu8QfVjzelUDjsaefZ0vCot6mE1CJDYtDJ5eVocQP16J35BphoB5O418sW3wWb6wR02XKqDISB+TO9Sx6Oi1zFDyRf6nZSYV/VGqS9nFFuauUlEQpG+LYjzvkeuelOtOdyDAm/jTD8nQVUYwbQDMWc5VQTXUwmAKviK2HhWrR60/Ljw1EXy/Yn7BJtOGfj2UftTGhgA5GKTItcE/dDdrljAisBHCxHvy7tD4p4DH5HDE/9hLxmxdPfmjxk6Q/OAcu2mlq8v8rD0m5iGkOmvrz50UF4rkPd4IjlUOHWu+CnCFM/arahFx/g8hq0c7NFMKff/g9FNQ= | |
[signature] => MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBglghkgBZQMEAgEwgAYJKoZIhvcNAQcBAACggDCCA+MwggOIoAMCAQICCEwwQUlRnVQ2MAoGCCqGSM49BAMCMHoxLjAsBgNVBAMMJUFwcGxlIEFwcGxpY2F0aW9uIEludGVncmF0aW9uIENBIC0gRzMxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzAeFw0xOTA1MTgwMTMyNTdaFw0yNDA1MTYwMTMyNTdaMF8xJTAjBgNVBAMMHGVjYy1zbXAtYnJva2VyLXNpZ25fVUM0LVBST0QxFDASBgNVBAsMC2lPUyBTeXN0ZW1zMRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzBZMBMGByqGSM |
This file contains 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
function wpp_wh_user_apply_action() { | |
check_ajax_referer( 'wpp-sh-wh-string', 'security' ); | |
$id = ! empty( $_POST['id'] ) ? $_POST['id'] : false; | |
if ( empty( $id ) ) { | |
wp_send_json_error( [ 'msg' => 'id' ] ); | |
} | |
$type = ! empty( $_POST['type'] ) && $_POST['type'] === 'yes'; |
This file contains 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 ( ! function_exists( 'remove_anonymous_object_filter' ) ) { | |
/** | |
* Remove an anonymous object filter. | |
* | |
* @param string $tag Hook name. | |
* @param string $class Class name | |
* @param string $method Method name | |
* | |
* @return void |
This file contains 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 | |
/** | |
* Delete all transients from the database whose keys have a specific prefix. | |
* | |
* @param string $prefix The prefix. Example: 'my_cool_transient_'. | |
*/ | |
function delete_transients_with_prefix( $prefix ) { | |
foreach ( get_transient_keys_with_prefix( $prefix ) as $key ) { | |
delete_transient( $key ); |
This file contains 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
https://qna.habr.com/q/1085944 | |
https://qna.habr.com/q/1085958 | |
https://qna.habr.com/q/1098064 |
This file contains 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 | |
/** | |
* Plugin Name: Admin Table Tutorial | |
* Plugin URI: www.vijayan.in | |
* Description: This plugin is created for the purpose to understand the WordPress admin table. | |
* Author: Vijayan | |
* Author URI: www.vijayan.in | |
* Text Domain: admin-table-tut | |
* Domain Path: /languages | |
* Version: 0.1.0 |
This file contains 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 $porto_settings; | |
$js_wc_prdctfltr = false; | |
if ( class_exists( 'WC_Prdctfltr' ) ) { | |
$porto_settings[ 'category-ajax' ] = false; | |
} |
This file contains 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 $porto_settings; | |
$term = get_queried_object(); | |
$zag = get_field( 'zag', $term ); | |
$text = get_field( 'text', $term ); | |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; | |
wp_register_script( 'wc-jquery-ui-touchpunch', WC()->plugin_url() . '/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch' . $suffix . '.js', array( 'jquery-ui-slider' ), WC_VERSION, true ); |
This file contains 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
/** | |
* Генерирует webp копии изображений сразу после загрузки изображения в медиабиблиотеку | |
* | |
* - новые файлы сохраняет с именем name.ext.webp, например, thumb.jpg.webp | |
*/ | |
function gt_webp_generation($metadata) { | |
$uploads = wp_upload_dir(); // получает папку для загрузки медиафайлов | |
$file = $uploads['basedir'] . '/' . $metadata['file']; // получает исходный файл | |
$ext = wp_check_filetype($file); // получает расширение файла |
NewerOlder