Answer given in your link is perfectly correct, you set it this way :
add_filter( 'postbox_classes_{post_type_name}_{metabox_id}', 'add_metabox_classes' );
function add_metabox_classes($classes) {
array_push($classes,'your_class');
return $classes;
}
Related Posts:
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Meta Boxes: ‘admin_init’ or ‘add_meta_boxes’ hook?
- Can you make a custom metabox field be required to save a new post?
- Display content from custom meta boxes in revisions
- Changing the priority of a custom taxonomy’s metabox
- How to get custom metabox image field?
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- How to select one major category (or custom taxonomy) for a custom post type?
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- Custom post type’s slug gets wrong when adding a custom meta box
- update custom post type meta from a shortcode
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Calculate Repeater Meta Box Input Field Values and Display Total
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- Change Post Title Edit Box
- Multiple information using custom post type
- How to keep a check box in custom meta box for custom post type checked by default for add new post?
- Show metabox in custom-post-template depending on taxonomy term?
- get_terms won’t display product_cat or any other custom taxonomies when specified
- Display custom post on home page based on a metabox selection
- How to add a “custom” date field to a custom post type?
- adding checkbox to meta
- get_post_meta is returning image id
- Why do I lose the content of meta boxes when I leave the page?
- WordPress nl2br is not converting newline to html line break when saving metabox value
- List custom post types in metabox
- Create custom PAGE with register_post_type
- Populate Custom Fields in a Custom Post Type?
- Duplicate Custom Header Functionality into the post edit screen
- Send email button in custom post type backend
- What’s the difference between same wp functions get_posts(); functions in different form?
- Troubles with saving metabox
- Custom Post Type with Templates using Meta Boxes?
- Post Quote with image on header for news site
- A better way to add a meta box to custom post types
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Plugin – Combine Meta Box Input Fields into single saveble record
- Create Connection Between two post types
- Disable closing on metaboxes
- Cannot save CPT meta box
- Create a Dropdown from Custom Post Type
- meta box on custom post type
- Listing custom terms in custom post meta
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Moving meta boxes in admin
- Can I restrict category availability?
- Displaying a div from an assigned meta_value when on a page
- Using custom post type as taxonomy
- Retrieving meta-box from a custom-post-type
- Create a custom post type for a photo post
- How to insert data into meta box from another plugin?
- Metabox multiple custom post select -> display selected items?
- Custom post type suddenly stoped working after WordPress 5 update
- Display metaboxes if checkbox ir marked
- Filter posts of custom post type by meta key in (List All Section)
- Create a select metabox that the user can pupolate?
- Display custom meta on page that has been check in custom post type
- saving dropdown menu data on custom post type
- Set Default Option Value as Blank for Meta Box
- Related posts meta_query CPT
- Meta box with front-end styling
- Cannot Save MetaBox Data in Custom Post Type
- Custom post type meta box empty after save
- Saving metabox keys and storing values as array
- How to recover the post ID earlier in the WP admin hook action “firing” sequence?
- Publish box in CPT remove ‘edit’ link
- Saving a Custom Post Type with a Meta Box results in a “Updating Failed” error
- Adding accordion-section to custom post type edit screen
- I’m having trouble with Related Product “tax_query” ‘terms’ value
- Create Post Types from a XML url (Real Estate website)
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- wp_editor in custom post type is not saving formatted text like bold, italic etc
- Admin metabox with custom post type dropdown option not update choosed input after saving
- Add other all taxonomies as meta boxes to custom post type
- Dropdown of existing posts in a metabox
- Metaboxes in Loop
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- php output of generated custom metabox
- Custom meta box data not saving
- Collect custom post in a calendar
- Meta Box not being added in plugin
- Unable to get the values for metaboxes for custom post type
- Problem with ‘save_post’ hook not running
- Custom meta-box for all custom post types
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- Meta-Box to add multiple items one at a time and on publish save all
- WPAlchemy Metabox rewriting slug
- Displaying wp post categories into my custom metabox
- Filter CPT based on meta box value using Flexible Posts widget?
- Add Metabox to all custom post types
- Loading one meta box only on post-new.php with a forward link
- Textarea type on one field custom add_meta_box?
- Creating entries with image attachements within posts and managing them in a list
- Adding a custom “Add Custom Field” button to Custom Meta boxes
- add a “list” into add meta box : problem
- Show search for data extracted from metabox
- Issues on saving data from CPT select metabox
- Remove custom meta boxes from custom post type