/** * Remove the default Custom Fields meta box. Only affects the content types that * have been activated. * INPUTS: sent from WordPress */ public static function remove_default_custom_fields($type, $context, $post) { $post_types_array = CCTM::get_active_post_types(); foreach ($post_types_array as $post_type) { remove_meta_box('postcustom', $post_type, 'normal'); } }