• Resolved jberg1

    (@jberg1)


    Is there any way to programmatically set the priority of the metabox to be at the very bottom of the editing page. Currently it is appearing above my custom fields I have on my pages.

    I know I can drag it down, or even minimize it. But wanted to move it to the bottom. Similar to an option with Yoast SEO.

    function movetobottom() {
    	return 'low';
    }
    add_filter( 'wpacu_metabox_prio', 'movetobottom');

    or something. And maybe even minimize it on load.
    Thanks for any help you can provide.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @jberg1 sure, for that, I’ll need to add the “apply_filters” function to the $priority parameter which is totally doable and I don’t have any problem with adding it.

    If you’re in a hurry and don’t want to wait until I will do the tag update, just edit the plugin in /wp-content/plugins/wp-asset-clean-up/classes/MetaBoxes.php (within addAssetManagerMetaBox() update ‘high’ to ‘low’). When you will re-download the plugin or update to the next tag release and it will overwrite the change, you will just have to use add_filter, just like you mentioned.

    I will update the current tag and let you know once I’m done ??

    Thread Starter jberg1

    (@jberg1)

    Awesome! Thanks Gabe

    Thread Starter jberg1

    (@jberg1)

    You got it!
    I went pro, too.

    Thanks again.

    Plugin Author Gabe Livan

    (@gabelivan)

    @jberg1 as promised, I’ve updated both the Lite and Pro versions (you just have to re-download the tags if you need to have the new changes take effect) to add filters for the Meta Boxes both $context and $priority parameters on the asset list and page options.

    So, if you want to change the priority for “Asset CleanUp: CSS & JavaScript Manager” meta box from “high” to “low”, just use the following for either Lite or Pro versions:

    add_filter('wpacu_asset_list_meta_box_priority', function ($priority) {
    return 'low';
    });

    Let me know if you have any questions or need further assistance in any way! I’ve tested it several times and it works great ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Metabox Priority’ is closed to new replies.