Created
January 9, 2025 04:33
-
-
Save benpearson/67c7add278c880f9278db63e1a1826de to your computer and use it in GitHub Desktop.
WordPress: Moving third party meta boxes (rankmath, aioseo, wpseo)
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 | |
/** | |
* Meta boxes | |
*/ | |
// Move Rank Math meta box below ACF meta boxes | |
function dt_rankmath_post_metabox_priority() | |
{ | |
return 'low'; | |
} | |
// add_filter('rank_math/metabox/priority', 'dt_rankmath_post_metabox_priority'); | |
// Move All In One SEO Pack meta box below ACF meta boxes | |
function dt_aioseop_post_metabox_priority() | |
{ | |
return 'low'; | |
} | |
// add_filter( 'aioseop_post_metabox_priority', 'dt_aioseop_post_metabox_priority' ); | |
// Move Yoast SEO meta box below ACF meta boxes | |
function dt_wpseo_metabox_priority() | |
{ | |
return 'low'; | |
} | |
//add_filter( 'wpseo_metabox_prio', 'dt_wpseo_metabox_priority' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment