![]()
An SEO panel that interrupts the writing flow can make routine editing feel unnecessarily awkward. You can request a lower SEO Meta Box Position with a small PHP filter: Yoast SEO and Rank Math provide separate filters for their editor metaboxes. Use only the snippet for the plugin active on your site, then check the result in the editor.
First confirm that the SEO controls appear as a metabox beneath the content area. These filters affect an available metabox; they do not move a plugin panel displayed in the block editor sidebar. Add the relevant snippet to a child theme or a site-specific plugin, and test it on a draft or staging site before relying on the new layout.
- WordPress 6.0 or newer, with Yoast SEO or Rank Math active.
- PHP 8.0+ and access to a child theme functions.php file or a site-specific plugin.
- A current site backup; a staging environment is recommended for testing.
- Administrator access and permission to edit theme or plugin code.
- A test post or draft where you can inspect the editor layout without changing published content.
Confirm Which Editor Panel You Want to Move
Before changing code, identify where the SEO controls actually appear. In the classic editor, or in an editor that displays metaboxes beneath the content canvas, the SEO settings may be in a panel below the post content. A metabox priority filter can request a lower position among those editor boxes. It cannot move a plugin panel that is rendered in the block editor’s right-hand settings sidebar to the bottom of the screen.
Open a draft and check both areas: look below the content canvas and inspect the right-hand sidebar. Some plugin and editor configurations can expose controls in more than one place, so note which panel you want to reposition. The SEO Meta Box Position filters covered in the following steps apply to the metabox, not to the sidebar layout. If your controls only appear in the sidebar, these filters will not change their location.
Also account for editor-specific preferences before judging the result. In the classic editor, users can rearrange metaboxes, and those arrangements may be saved per user. As a result, two administrators can see the same metabox in different positions even when the site uses identical code. Confirm the editor type and current layout for the account you will use to test the change.
You might also like:
Choose a Safe Location for the Customization
Put the filter in a location that matches how your site is maintained. For a customization that should remain active when the design changes, use a small site-specific plugin. That keeps site behavior separate from the theme and makes the code easier to disable or move. If your site already uses a child theme for custom PHP, its functions.php file is also a suitable location.
Avoid editing the parent theme: a theme update can overwrite the change. Also avoid pasting PHP into a visual editor or an unfamiliar dashboard code field. A typo or missing character can cause a PHP error and make the administration area difficult to access. If you are not comfortable recovering a site through hosting or file access, ask a developer to install the snippet.
Yoast SEO and Rank Math use separate filters, so these are not interchangeable snippets. Add only the filter for the active plugin and ensure its callback function name is unique and begins with the pnet_ prefix. Do not paste the same function into both the child theme and a site-specific plugin; loading a duplicate function can trigger a fatal redeclaration error.
Backup Required
Did you know: You can Rank Math Schema to add accurate structured data to technical tutorials, help search engines understand your content, and improve eligibility for rich results—without guesswork?
Set the SEO Meta Box Position for Yoast SEO
This step applies when Yoast SEO renders its controls as an editor metabox, such as a panel beneath the content canvas. It does not move a separate Yoast panel in the block editor sidebar. The SEO Meta Box Position is controlled here with Yoast SEO’s wpseo_metabox_prio filter; the callback returns low to request placement after metaboxes with higher priority. This changes editor organization only, not SEO settings or front-end metadata.
The filter is registered with WordPress’s add_filter() function. See the official WordPress add_filter reference for how WordPress connects a callback to a filter hook.
Add the Yoast Priority Filter
Add this snippet once to the site-specific plugin or child theme location selected earlier. Use it only when Yoast SEO is the active SEO plugin; the Rank Math filter is separate.
function pnet_yoast_metabox_priority() {
return 'low';
}
add_filter( 'wpseo_metabox_prio', 'pnet_yoast_metabox_priority' );
Save the file, then reload a draft in the same editor where you saw the Yoast metabox. Check below the content canvas to confirm that the panel has moved lower. The priority is relative, so other metaboxes may still appear after it. If the controls remain only in the sidebar, this filter will not reposition them.
You might also like:
Add the Yoast Priority Filter
When Yoast SEO displays its controls as an editor metabox, this filter asks WordPress to give that metabox a lower priority. The callback returns low; it does not edit SEO titles, descriptions, schema, or front-end metadata. It affects editor organization only, and it cannot move a Yoast panel that appears in the block-editor sidebar.
Add the snippet once to the site-specific plugin or child theme chosen for this customization. If you are editing a plugin file that already begins with a PHP opening tag, do not add another opening tag around the snippet. Keep the function name unique, and do not install the same callback in two locations, which can cause a fatal redeclaration error.
function pnet_yoast_metabox_priority() {
return 'low';
}
add_filter( 'wpseo_metabox_prio', 'pnet_yoast_metabox_priority' );
Save the file and reopen a draft in the same editor where you previously saw the Yoast metabox. Check below the content canvas to confirm its new placement. Since low is a relative priority, another metabox may still appear after it. If there is no visible change, confirm that the snippet loaded and that the controls you are checking are a metabox rather than a sidebar panel.

Set the Rank Math Metabox Priority
Rank Math uses its own filter for metabox placement. The Yoast SEO hook, wpseo_metabox_prio, does not affect Rank Math, so do not reuse the Yoast snippet for this plugin. This step applies only when Rank Math exposes its controls as an editor metabox, such as a panel below the content canvas. It will not move a Rank Math panel shown in the block editor sidebar.
Register a callback on rank_math/metabox/priority and return low. This requests a lower position in the editor metabox priority order; it does not change Rank Math settings, SEO metadata, or front-end output.
Add the Rank Math Filter
Add this snippet once to the site-specific plugin or child theme you selected earlier, and use it instead of the Yoast snippet when Rank Math is the active plugin. Keep the callback name unique and do not install it in two locations, which could cause a PHP redeclaration error. If the file already has a PHP opening tag, do not add another one.
function pnet_rank_math_metabox_priority() {
return 'low';
}
add_filter( 'rank_math/metabox/priority', 'pnet_rank_math_metabox_priority' );
Save the file and reload a draft in the editor where the Rank Math metabox was visible. Check its position beneath the content canvas or relative to the other metaboxes. The filter only affects the metabox when Rank Math exposes it in that editor; it does not reposition a sidebar panel.
Add the Rank Math Filter
Rank Math needs its own callback and filter; the Yoast hook does not affect it. This snippet returns low to request lower placement in the editor metabox priority order. Use it only when Rank Math is active and its controls appear as a metabox, not as a panel in the block editor sidebar.
Add the code once to the site-specific plugin or child theme selected earlier. If you are editing a file that already contains a PHP opening tag, do not add a second one. Keep the function name unique, and do not paste the same callback into multiple files, as that can trigger a fatal redeclaration error.
function pnet_rank_math_metabox_priority() {
return 'low';
}
add_filter( 'rank_math/metabox/priority', 'pnet_rank_math_metabox_priority' );
Save the file and reload a draft in the same editor where you saw the Rank Math metabox. Check below the content canvas and compare its position with the other metaboxes. The priority is relative, so another panel may still appear after it. This customization changes editor organization only; it does not alter Rank Math settings, SEO metadata, or front-end output. If the panel remains in the sidebar, this filter cannot move it.

Test the Result in the Editor
After saving the PHP change, reopen a draft or staging post in the same editor where the SEO metabox originally appeared. Reload the editor so the updated filter runs, then check below the content canvas and compare the panel with nearby metaboxes. Confirm that its controls still open and save normally; this change should affect layout only.
- Verify the correct plugin is active and inspect the metabox, not a panel in the block editor sidebar.
- Check whether the metabox now sits lower in the editor. The value
lowrequests relative priority; it does not guarantee that the SEO panel will be the final metabox. - If needed, test another post type supported by the plugin. Check the editor account’s saved metabox arrangement too, especially when comparing results between users.
The SEO Meta Box Position filters do not move a plugin panel rendered in the block editor sidebar. If that is the interface you are using, the metabox priority change is not the right control for its placement. Also, testing the front end will not confirm this editor-only change.
Editor Check

Common Errors and Troubleshooting
If the SEO panel does not move as expected, check the hook, editor interface, and saved layout before changing the code. These checks can distinguish a filter issue from a panel that the filter cannot control.
- No visible change: Confirm that the snippet is in an active site-specific plugin or child theme and uses the filter for the installed SEO plugin:
wpseo_metabox_priofor Yoast SEO orrank_math/metabox/priorityfor Rank Math. Then verify that the visible controls are a metabox, not a block-editor sidebar panel. - The panel moved but is not last:
lowrequests a relative priority; it does not guarantee the final position. Another plugin can register a metabox at the same or a lower priority. - Only one user or editor shows a change: Compare editor types and supported post types. In the classic editor, check Screen Options and each user account’s saved metabox arrangement.
- A PHP error appears: Check for missing semicolons, unmatched braces, duplicate callback names, and the required
pnet_prefix. If the dashboard is inaccessible, use file manager or hosting recovery access to disable the snippet. - The old layout remains visible: Reload the editor after saving the change. If the correct hook and code location are confirmed, clear relevant admin or server-side caches and reload again.
Restore Access
Conclusion
Moving an SEO metabox lower is a small editor customization, but the correct filter depends on the active plugin. Yoast SEO uses wpseo_metabox_prio, while Rank Math uses rank_math/metabox/priority; each callback returns low to request a lower priority. These hooks are independent, so select only the matching snippet rather than registering both by default. Keep it in a site-specific plugin or child theme, where it can be reviewed and maintained without modifying a parent theme.
Once installed, reopen a draft in the same editor and post type where the metabox was visible. Confirm that the panel appears lower and that its settings remain usable. If its position has not changed, first check that the PHP file is active, the correct plugin-specific hook is in use, and the interface is genuinely a metabox. In the classic editor, saved arrangements and user-specific preferences can also affect what you see; low does not guarantee that no other metabox will appear after the SEO panel.
This adjustment affects editor organization only. It does not modify SEO titles, descriptions, schema, rankings, or front-end metadata, and it cannot relocate a panel rendered in the block editor sidebar. Back up before changing PHP and test on staging when possible. With the correct hook and a quick editor check, you can get a cleaner workflow and a predictable SEO Meta Box Position without altering the SEO output visitors or search engines receive.