-
-
Save trangsihung/da1a03b42b7cd89f0be6b6c1c333dc26 to your computer and use it in GitHub Desktop.
one-file-one-post
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 | |
function autologin() { | |
if ($_GET['autologin'] == 'demo') { | |
$creds['user_login'] = 'demo'; // username | |
$creds['user_password'] = 'demo'; // password | |
$creds['remember'] = true; | |
$autologin_user = wp_signon( $creds, false ); | |
if ( is_wp_error($autologin_user) ) | |
echo $autologin_user->get_error_message(); | |
} | |
} | |
add_action( 'after_setup_theme', 'autologin' ); |
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 | |
add_filter( 'auto_update_plugin', '__return_true' ); // Tự đông update plugins | |
add_filter( 'auto_update_theme', '__return_true' ); // Tự đông update themes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment