Created
March 21, 2018 16:58
-
-
Save heyjones/cfb894fbd7639799f023ed626285929a to your computer and use it in GitHub Desktop.
Move the Yoast SEO metabox to the bottom of the post edit screen in WordPress
This file contains 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 | |
namespace yoast_low_pri; | |
add_action( 'plugins_loaded', __NAMESPACE__ . '\\plugins_loaded' ); | |
function plugins_loaded(){ | |
if( defined( 'WPSEO_VERSION' ) ){ | |
add_filter( 'wpseo_metabox_prio', __NAMESPACE__ . '\\wpseo_metabox_prio' ); | |
} | |
} | |
function wpseo_metabox_prio(){ | |
return 'low'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment