• Hi everyone.

    This plugin could help me with my goal. I would like users to have a default meta box order, which I would like to set.

    Unfortunately I cannot understand how it works. I get that I have to work on the plugin code.

    But how can I change the order? How can I save the changes and force user to have those changes as a default order? And what about meta boxes which are not in the list?

    I know that probably answers are in the source itself, but I just can’t figure out how to do the trick.

    Thank you in advance.

    https://www.ads-software.com/plugins/post-meta-box-order/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hello @wordsinthebucket,

    Unfortunately you need to edit plugin’s source.
    (Next versions of this plugin definitely should be hookable via filter )

    For other widgets, you need to add something like this;
    $posts_widgets_order_left_column[] = 'new-widget';

    I know that probably answers are in the source itself,

    Yes ??

    How can I save the changes and force user to have those changes as a default order?

    Two things you need to know in here.

    1) If you want to force them everytime to use your order, just set $force_override variable true.
    2) If you want to apply this order as default and users still able to change order
    just change $posts_widgets_order_hash value.

    I hope this helps.

    Cheers,

    Thread Starter wordsinthebucket

    (@wordsinthebucket)

    Ok thank you for your kind assistance.
    I’ll give a try while waiting for the update. I’ll keep you posted.
    Thank you again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A little bit of assistance’ is closed to new replies.