Last active
August 29, 2015 14:04
-
-
Save blainerobison/d059063d74ec36b31687 to your computer and use it in GitHub Desktop.
wp: Yoast SEO plugin hooks [WordPress]
This file contains hidden or 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 | |
/** | |
* 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