Forked from gregrickaby/change-yoast-seo-metabox-priority.php
Created
January 2, 2019 10:40
-
-
Save bewho/dab5d3f1fa52a29f21a69ff534b922ac 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