Skip to content

Instantly share code, notes, and snippets.

@heyjones
Created March 21, 2018 16:58
Show Gist options
  • Save heyjones/cfb894fbd7639799f023ed626285929a to your computer and use it in GitHub Desktop.
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
<?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