Skip to content

Instantly share code, notes, and snippets.

@gregrickaby
Last active September 5, 2024 01:52
Show Gist options
  • Save gregrickaby/478e9151388b54de6f5c to your computer and use it in GitHub Desktop.
Save gregrickaby/478e9151388b54de6f5c 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