Add the OceanWP Settings Metabox in your Custom Post Type

This is a Developer Level doc.

If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

 * Add the OceanWP Settings metabox in your CPT
function oceanwp_metabox( $types ) {

	// Your custom post type
	$types[] = 'your-post-type';

	// Return
	return $types;

add_filter( 'ocean_main_metaboxes_post_types', 'oceanwp_metabox', 20 );

All PHP snippets should be added via a child theme's functions.php file.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.