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
1> Login into the sites shell of Local By Flyweel sites | |
2> Then past the following command into the login shell `php -i | grep "php.ini"` | |
OUTPUT | |
root@05438eed18c9:/# php -i | grep "php.ini" | |
Configuration File (php.ini) Path => /conf/php/7.0.3 | |
Loaded Configuration File => /conf/php/7.0.3/php.ini | |
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
error_log( print_r( $is_active, true ) . "\n", 3, WP_CONTENT_DIR . '/debug_new.log' ); |
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
mysql -u UN -h HOSTNAME -p DATABASENAME < FILENAME.sql | |
mysql -u root -h localhost -p local < mysql.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
define( 'WP_HOME', 'http://example.com' ); | |
define( 'WP_SITEURL', 'http://example.com' ); |
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
//In a better world block's author makes sure the block's assests are loaded only if block is actually in use (via enqueue_block_assets). For other cases: | |
add_filter( 'script_loader_tag', 'sz_stop_loading_unused_block_crap', 10, 3 ); | |
function sz_stop_loading_unused_block_crap( $tag, $handle, $src ) { | |
// Check if block's assets are loaded | |
if (str_contains($src, 'plugins/wp-swiper')) { //plugin directory here | |
if (is_singular()) {// works only on Singular | |
//TODO: //Will work for content only. if block is elsewhere or post it's archive use this https://wordpress.stackexchange.com/questions/392493/find-if-widget-block-is-active | |
$id = get_the_ID(); | |
if (has_block('da/wp-swiper-slide', $id) !== true) { //block name here |
OlderNewer