It’s not that hard: There’s a user Meta entry for that.
You can not only retrieve the order, but also which ones are hidden (just to get one step further).
# Meta Box Order
$meta_box_order = get_user_meta(
wp_get_current_user()->ID
,sprintf( 'meta-box-order_%s', get_post_type() )
,true
);
# Hidden Meta Box
$meta_box_hidden = get_user_meta(
wp_get_current_user()->ID
,sprintf( 'metaboxhidden_%s', get_post_type() )
,true
);
Related Posts:
- How to add or remove metabox each page separately?
- WordPress twenty eleven sidebar on Pages
- Different “Text Widgets” in Sidebar on Many Different Pages?
- WordPress 4 and wp_editor() Not Showing Visual/Text tabs
- Registering multiple sidebars with data from an array
- How to add meta boxes to Pages
- How to create a metabox that will list all my pages in a dropdown selector?
- Where is the key _wp_page_template passed?
- Page template no longer exists – metaboxes won’t save
- Edit Parent page drop menu when creating a page
- how to display sidebar on pages in wordpress
- Undefined index: post in NOTICE while adding meta box
- creating single page with 2 columns while theme is 3 column
- Set parent page based on custom metabox value
- Translate dashboard metabox
- How to add custom php file to right sidebar?
- If page or sub page not working as expected
- Check if sidebar is active on page with id
- Custom Upload Adds Ghost File
- How to exclude sidebar from pages?
- How to add or remove metabox each page separately?
- Page specific values in widgets
- how to list subpages in sidebar without widget
- How can I use Page editor for two separate templates?
- Custom SINGLE page with custom metaboxes and custom template
- How to get current page ID outside the loop?
- featured image as background image on pages
- Can I display submenus in groups, using wp_list_pages?
- Order by menu_order and title?
- WP Page and Subdirectory with same name
- Can I display the widget admin in the page admin?
- How to inject custom url path for page ?
- How to display page title+link of page created by user
- Modify theme to get page excerpts on front page
- get_page_by_title not working when used with a variable
- How to disable Page Attributes dropdown in wp-admin
- How to make certain page templates visible to admin only
- Editing Pages that Have Already Been Published
- How to echo excerpts with wp_list_pages?
- Remove pages from backend list *and* update counter accordingly
- How do i fix? WordPress database error: You have an error in your SQL syntax;
- WordPress Admin – Add Edit link to specific page under Pages Menu
- Show child pages and sibling pages on the child page
- How do I use featured images on index.php?
- Making a wordpress page the index on the site?
- Dashboard :10 Last draft page and 10 last pending review page (metabox)
- Using Pages to handle calls for custom post types
- Displaying Subpages while on Parent page?
- Guest authors, sort of like Wikipedia, but more theme-able
- Pages views limit [closed]
- Redirect to page list when page published
- Having wordpress page accesss issue under sub-directory
- How to make my category archive behave like a page
- Add external css to Contact Page
- Role can edit just one page [closed]
- how to edit source code of specific page in wordpress?
- Cannot enter “::before” for li tag when editing a WordPress page
- How to get page_id for url rewrite or how to use page slug for calling a page?
- JQuery Plugins in WordPress
- Dynamic href link to Contact Page
- Restrict the list of parent pages to only those which are created by current user
- how can i remove page title on desktop view
- Is there a way to schedule changes to a page?
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- Page menu not showing in admin, new Page button missing in toolbar too
- Allow a user to edit their own page and profile only
- Custom folder for wordpress page templates
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Add a menu metabox to post edit page
- Next and Previous Page links based on ‘Order’ attribute
- Create multiple pages with tables from json file
- Update Pages ONLY from Stage to Live (not products)
- Attaching a file to a page without adding to media library?
- Every change made by “Author” role is going to “pending review”
- Groping Pages Per Department Option
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- WordPress default theme cannot get full page on entry content div
- Create multiple custom HTML pages
- How to remove the duplicate title tags and duplicate meta descriptions?
- Two different layouts for the same post
- My page title turns into a h2 tag – What to do?
- problem with loading pages
- How to turn post into pages and via versa?
- Content not displaying on page
- Blank white space where header was [closed]
- Featured Image not displaying in a page
- Display child pages on homepage template
- Set order acs and no paging for archive page
- search page different results
- simple category search form returns full text – but I need excerpts
- Naming custom page templates
- Sort the data in WordPress using get-page-by-title
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- In WP, Google map error initMap is not a function [closed]
- How to customize the author page in wordpress?
- User profile in front-end
- custom css in one page
- Why is a page shown with ‘hidden’ next to the name in the list of pages if the page is set to public?