If you have custom post types in OceanWP you may have noticed that the settings metabox is not showing up when you edit a post. Using the code below you can add the metabox to your post types. The documentation provided by OceanWP shows how to add it to a single post type but below we are going to show you how to multiple posts.
/** * Add the OceanWP Settings metabox to multiple Custom Post Types */
function oceanwp_metabox( $types ) {
// Your custom post type
$types = array ('custom_post_type_1', 'custom_post_type_2', 'etc...');
// Return
return $types;
}
add_filter( 'ocean_main_metaboxes_post_types', 'oceanwp_metabox', 20 );