Skip to content

Instantly share code, notes, and snippets.

@blainerobison
Last active August 29, 2015 14:04
Show Gist options
  • Save blainerobison/d059063d74ec36b31687 to your computer and use it in GitHub Desktop.
Save blainerobison/d059063d74ec36b31687 to your computer and use it in GitHub Desktop.
wp: Yoast SEO plugin hooks [WordPress]
<?php
/**
* Change order of Yoast SEO plugin meta box
*
* Plugin: Yoast SEO
*/
function prefix_yoast_meta_order() {
return 'low';
}
add_filter( 'wpseo_metabox_prio', 'prefix_yoast_meta_order' );
/**
* Hide Yoast columns on overview screens
*
* Plugin: Yoast SEO
*/
function prefix_hide_yoast_columns() {
if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
return false;
}
add_filter( 'wpseo_use_page_analysis', '__return_false' );
}
add_action( 'init', 'prefix_hide_yoast_columns' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment