Last active
July 29, 2018 13:17
-
-
Save ahmadawais/bb4440bdd0ea9778a3e8 to your computer and use it in GitHub Desktop.
SEO by Yoast Stuff
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
/** | |
* Filter Yoast SEO Metabox Priority to low | |
*/ | |
add_filter( 'wpseo_metabox_prio', 'aa_filter_yoast_seo_metabox' ); | |
function aa_filter_yoast_seo_metabox() { | |
return 'low'; | |
} | |
/** | |
* Remove Yoast SEO Metabox | |
*/ | |
function aa_remove_yoast_metabox_reservations(){ | |
remove_meta_box('wpseo_meta', 'aa_skills', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_numbers', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_features', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_testimonials', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_screens', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_clients', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_slides', 'normal'); | |
remove_meta_box('wpseo_meta', 'aa_socials', 'normal'); | |
} | |
add_action( 'add_meta_boxes', 'aa_remove_yoast_metabox_reservations',11 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment