$(window).resize(function() {
clearTimeout(window.resizedFinished);
window.resizedFinished = setTimeout(function(){
console.log('Resized finished.');
}, 250);
});
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 | |
| /** | |
| * Register all actions and filters for the plugin | |
| * | |
| * @link http://chinarajames.com | |
| * @since 1.0.0 | |
| * | |
| * @package Studiousapp_Notes | |
| * @subpackage Studiousapp_Notes/includes |
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 | |
| /* | |
| Plugin Name: Delay WooCommerce emails | |
| Plugin URI: https://stackoverflow.com/questions/66157566/delay-woocommerce-order-processing-mail | |
| Description: Delay WooCommerce emails for a specified time in settings. | |
| Author: LoicTheAztec | |
| Author URI: https://stackoverflow.com/users/3730754/loictheaztec?tab=profile | |
| Version: 1.0 | |
| */ |
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 | |
| // PHP memory limit for this site | |
| define( 'WP_MEMORY_LIMIT', '128M' ); | |
| define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit. | |
| // Database | |
| define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database. | |
| define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users) | |
| // Explicitely setting 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
| cd C:\laragon\usr\bin && curl -L -O https://raw.github.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && echo @ECHO OFF > wp.bat && echo php "%~dp0wp-cli.phar" %* >> wp.bat |
add_action( 'add_admin_bar_menus', function(){
global $wp_admin_bar;
if ( ! is_admin_bar_showing() || ! is_object( $wp_admin_bar ) ) {
return;
}
remove_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item', 7 );
add_action( 'admin_bar_menu', 'wp_admin_bar_my_account_item_no_avatar', 7 );
});- Open Mysql Console
- Enter password
- Switch to the database: use dbname;
- Import: source G:/wamp/www/tools/sql.sql;
https://www.php-dev-zone.com/blog/how-to-import-large-sql-file-in-phpmyadmin
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
| function shortcode_empty_paragraph_fix($content) | |
| { | |
| $array = array ( | |
| '<p>[' => '[', | |
| ']</p>' => ']', | |
| ']<br />' => ']' | |
| ); | |
| $content = strtr($content, $array); |