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 | |
//Move the YOAST SEO metabox in last position | |
add_filter( 'wpseo_metabox_prio', 'noo_move_yoast_seo_metabox' ); | |
function noo_move_yoast_seo_metabox() { | |
return 'high'; | |
} |
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 | |
//Limit WP post revisions | |
define('AUTOSAVE_INTERVAL', 300); // seconds | |
define('WP_POST_REVISIONS', 3); |
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 | |
//Remove Ninja Forms Metabox | |
add_action( 'do_meta_boxes', 'noo_remove_metaBox_nf'); | |
function noo_remove_metaBox_nf() { | |
remove_meta_box('ninja_forms_selector', 'post', 'side'); | |
remove_meta_box('ninja_forms_selector', 'page', 'side'); | |
} |
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 | |
// Temporarily disable a user account | |
add_filter( 'authenticate', 'noo_disable_user_account',100,2); | |
function noo_disable_user_account ($user, $username) { | |
global $page_contact; | |
if(!isset($user->data)) return $user; | |
$user_data = $user->data; |