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
_TOKEN_=disabled |
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
UPDATE `ps_configuration` | |
SET `value` = 0 | |
WHERE `name` = 'PS_SSL_ENABLED'; | |
UPDATE `ps_configuration` | |
SET `value` = 0 | |
WHERE `name` = 'PS_SSL_ENABLED_EVERYWHERE'; |
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
UPDATE newprefix_usermeta SET meta_key = REPLACE(meta_key, 'oldprefix_', 'newprefix_') WHERE meta_key LIKE '%oldprefix_%'; | |
UPDATE newprefix_options SET option_name = REPLACE(option_name, 'oldprefix_', 'newprefix_') WHERE option_name LIKE '%oldprefix_%'; |
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
// Fix bug open Side Cart Plugin (https://wordpress.org/support/plugin/side-cart-for-woocommerce/) with Pre Order Woocommerce plugin (https://codecanyon.net/item/wordpress-woocommerce-pre-order-plugin/20052905) | |
// add wfc_pslide_atc to single_add_to_cart_button | |
jQuery('.single_add_to_cart_button').addClass('wfc_pslide_atc'); |
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
/* Desahbilitar jquery migrate */ | |
function montanera_remove_jquery_migrate( &$scripts ) { | |
if( !is_admin() ) { | |
$scripts->remove( 'jquery' ); | |
$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.12.4' ); | |
} | |
} | |
add_filter( 'wp_default_scripts', 'montanera_remove_jquery_migrate' ); |
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
add_action('wp_print_scripts', function (){ | |
if( !in_array( $GLOBALS[ 'pagenow' ], array( 'wp-login.php', 'OTHER PAGES WITHOUT INVISIBLE RECAPTCHA' ), true ) ){ | |
wp_dequeue_script( 'google-invisible-recaptcha' ); | |
} | |
}); |
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
wp scaffold block <slug-block> --title="<title-block>" --category=<category> --theme |
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 | |
//index.php | |
$screen_shot_image = ''; | |
if(isset($_POST["screen_shot"])) | |
{ | |
$url = $_POST["url"]; | |
$screen_shot_json_data = file_get_contents("https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url=$url&screenshot=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
// remove excerpt panel | |
wp.data.dispatch( 'core/edit-post').removeEditorPanel( 'post-excerpt' ); | |
Here is an (incomplete) list of panel IDs: | |
taxonomy-panel-category - Category panel. | |
taxonomy-panel-CUSTOM-TAXONOMY-NAME - Custom taxonomy panel. If your taxonomy is topic, then taxonomy-panel-topic works. | |
taxonomy-panel-post_tag - Tags panel | |
featured-image - Featured image panel. | |
post-link - Permalink panel. | |
page-attributes - Page attributes panel. |
NewerOlder