- Make a full mysqldump file
mysqldump --all-databases | gzip > /home/alldatabases.sql.gz
-
Uncheck monitor in WHM > Service Manager for Mysql and save the area.
-
Stop MySQL
/etc/init.d/mysql stop
<?php | |
/** | |
* Change Wordpress jQuery AND jQuery Migrate Version | |
*/ | |
add_action( 'init', function () { | |
// jQuery | |
$core = wp_scripts()->registered['jquery-core']; | |
$core->ver = '1.12.4'; |
<?php | |
$subject = ' | |
Lorem Ipsum 1 | |
Lorem Ipsum 1.1 | |
Lorem Ipsum 2 | |
Lorem Ipsum 2.1 | |
Lorem Ipsum 2.1.1 | |
Lorem Ipsum 3 | |
Lorem Ipsum 3.1 |
<?php | |
// Put this code in mu-plugins or functions.php | |
// theme open your site url with add switch_user query to end of the url. | |
// EX: http://test.com/?switch_user=true | |
if ( isset( $_GET['switch_user'] ) && $_GET['switch_user'] ) { | |
add_action( 'init', function () { | |
$user_id = 1; // in most of case user_id=1 is administrator. |
<?php | |
// Disable Plugin Update Notice | |
add_filter( 'site_transient_update_plugins', function ( $value ) { | |
$plugin = 'elementor/elementor.php'; // plugin slug | |
if ( isset( $value->response[ $plugin ] ) ) { | |
unset( $value->response[ $plugin ] ); | |
} |
mysqldump --all-databases | gzip > /home/alldatabases.sql.gz
Uncheck monitor in WHM > Service Manager for Mysql and save the area.
Stop MySQL
/etc/init.d/mysql stop