- 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
// 1. Open firefox browser. | |
// 2. Use this for open hamster in browser: https://gist.github.com/NabiKAZ/10ab0c25c0703d5d3f5b9b4acd500c66 | |
// 3. Install addon: https://addons.mozilla.org/en-US/firefox/addon/my-js-injector/ | |
// 4. Copy & paste below code. | |
// tap every 0.5 second | |
setInterval(() => { | |
let tab = document.querySelector('.router-link-exact-active'); | |
// only run if we are in home tab | |
if (tab && tab.getAttribute('href') === '/clicker') { |
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 | |
// 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 ] ); | |
} |
<?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 | |
$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 | |
/** | |
* Change Wordpress jQuery AND jQuery Migrate Version | |
*/ | |
add_action( 'init', function () { | |
// jQuery | |
$core = wp_scripts()->registered['jquery-core']; | |
$core->ver = '1.12.4'; |