Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bewho/dab5d3f1fa52a29f21a69ff534b922ac to your computer and use it in GitHub Desktop.
Save bewho/dab5d3f1fa52a29f21a69ff534b922ac to your computer and use it in GitHub Desktop.
Make Yoast SEO your bitch
<?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' );
<?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