Viewing 1 replies (of 1 total)
  • You can hook into the envira_gallery_skipped_posttypes filter, adding the Post Type(s) to the array of Post Types that will be skipped by Envira.

    This will result in the metabox not displaying on those Post Types.

    Example:

    function skip_post_types( $post_types ) {
        $post_types[] = 'your-cpt';
        return $post_types;
    }
    add_filter( 'envira_gallery_skipped_posttypes', 'skip_post_types' );

Viewing 1 replies (of 1 total)
  • The topic ‘Turn off on specific post types’ is closed to new replies.