Add class to all meta boxes for a custom post type
After doing some playing around, I discovered this can actually be accomplished by defining the name of the hook I want to add the filter to via a variable. So if my $post_type_name is portfolio and my $box_id is piece_info, I can make a filter as follows: function add_meta_box_class( $classes ) { array_push( $classes, ‘custom-class’); … Read more