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:
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Multiple Custom Metabox Help
- How to force one column layout on custom post type edit page?
- Custom Post Type – Taxonomy Dropdown Menu?
- wp_dropdown_categories in custom post type with custom taxonomy
- How can I add a column/s to wp_posts table?
- How to add multiple images to custom post type?
- How do I remove all the metaboxes for a custom post type?
- How To Set Custom Post Type Title Without Supports
- Creating a Custom Post Types dropdown in a Meta Box
- Find callback function for custom taxonomy metabox
- Remove custom metaboxes from custom post type
- Add pre-existing meta box to new custom post type
- Dynamic page.php template for custom post types
- Add special meta box to custom post type
- Custom field values get deleted
- WordPress metabox file upload in custom post [duplicate]
- Display metabox conditionally
- Adding Custom Metaboxes to Custom Pages
- Save or update data when custom post published
- Custom metabox translation
- How to add multiple featured image in meta box in post editor?
- Timepicker-addon doesn’t show – Datepicker works fine?
- Adding Meta Boxes while Registering a Post Type in a Class
- Metabox Populated with a Custom Post Type – How to Output CPT based on Select?
- Is it possible to create a post using a metabox?
- Custom Post Type Metabox – Not Saving
- WordPress custom meta field for custom post not storing data
- How to Duplicate (multiple meta box)?
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- List of Posts in a Custom Field
- Add Standard Page Attributes Metabox for Page Parent
- dynamically add a custom field or metabox to custom post type [duplicate]
- Custom date changer post_date => future – missed schedule error
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Display correctly using metabox.io
- Translating custom post type metaboxes [closed]
- Adding a metabox on a CPT’s submenu page
- How to Add multiple instance of meta box to custom post type
- Checking if $_FILE isset for an array of file upload metaboxes
- How can I move (or create another) publish button?
- Wrap meta boxes & data handling for specific post types in classes?
- Custom “radio button meta box” not saving correctly
- Sizing textarea field in custom metabox
- Meta Data for Custom Post Type not saving
- Remove “show sharing buttons” metabox Jetpack from custom post type
- Custom Post Meta from custom metaboxes is randomly being deleted
- Custom post-type metabox position
- How to add editable/dynamic values to dropdown of a Custom Post Type Meta Box
- Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”
- What do the numbers mean at the end of add_action(‘save_post’)…?
- A meta box (in a custom post type) with two different type of fields
- How can I set a meta value that will then affect other post meta values?
- Unable to display selected post title in frontend from metabox wp_dropdown_pages()
- Custom Meta Box returns no HTML
- Topic won’t save for a custom post type — how to debug?
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- Removing numerous Meta boxes from numerous CPTs
- Get custom term meta problem on single post type
- Is it possible to sort metabox teaxtarea values?
- wp_editor for custom post type doesn’t save value
- Save Metabox Custom Field Value
- Meta box not appearing in my custom post type
- Adding an extra parameter [string] to my posts’ permalink?
- Empty meta-box returns publishdate if no value is set?
- Custom Post Type Meta Box Text Input Field Won’t Save When Blank
- Select Venue from dropdown list and reuse stored address information in meta_box
- Custom Meta Box with variable number of fields
- Save Custom Post Value
- Metaboxes inside Tab
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- Show a custom post title in another custom post type in Meta box
- How to avoid duplicate posts queried from custom meta?
- Custom Metabox Info Not Saving
- Metabox collapsed by default
- Modify Publish Metabox location on CPT
- PHP Warning with Custom Fields
- Multiple useres editing specified content
- $_POST from a Meta Box
- Custom taxonomy with custom post type archive page
- Wrong post ID in meta box callback
- Convert Custom Post Data to Javascript Array for Autocomplete
- Generating Custom Post Type list, within admin of another custom post type
- How to shows CPT which has specific meta key?
- Avoid another meta box in my custom post type
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Delete custom post type metadata without deleting the post in admin area
- Metabox is not saving
- How can i embbed two different galleries in custom post type
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Select custom post by meta value
- Custom post type in submenu with custom meta box as a title with custom html
- Custom post type – permalink
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- How to query custom post then display sections by meta value
- CPT Metabox with email notification
- Move title “meta box” in post mode
- Display div based on Group metabox selection [closed]
- How to consume external API from WordPress post editor and display the response data in the custom field?