Last active
September 5, 2024 01:52
-
-
Save gregrickaby/478e9151388b54de6f5c to your computer and use it in GitHub Desktop.
Make Yoast SEO your bitch
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 | |
/** | |
* Set Yoast SEO metabox priority to low. | |
*/ | |
function wds_client_move_yoastseo_metabox() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'wds_client_move_yoastseo_metabox' ); |
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 Yoast SEO Notifications | |
*/ | |
function wds_client_remove_yoastseo_notifications() { | |
if ( ! class_exists( 'Yoast_Notification_Center' ) ) { | |
return false; | |
} | |
remove_action( 'admin_notices', array( Yoast_Notification_Center::get(), 'display_notifications' ) ); | |
remove_action( 'all_admin_notices', array( Yoast_Notification_Center::get(), 'display_notifications' ) ); | |
} | |
add_action( 'init', 'wds_client_remove_yoastseo_notifications' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment