Created
August 5, 2015 19:08
-
-
Save jaredatch/7da2f8a448a56ff756c7 to your computer and use it in GitHub Desktop.
Tame Yoast plugins
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 | |
| // Tell Yoast Google Analytics plugin not to be at the top of the WP admin menu | |
| add_filter( 'wpga_menu_on_top', '__return_false' ); | |
| // Disable additional WPSEO columns from the admin | |
| add_filter( 'wpseo_use_page_analysis', '__return_false' ); | |
| /** | |
| * Set WPSEO metabox to low so custom fields can appear above it | |
| * | |
| * @since 1.0.0 | |
| * @return string | |
| */ | |
| function ja_wpseo_metabox_priority() { | |
| return 'low'; | |
| } | |
| add_filter( 'wpseo_metabox_prio', 'ja_wpseo_metabox_priority' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment