jetpack_enable_cpt, false, self::CUSTOM_POST_TYPE

jetpack_enable_cpt, false, self::CUSTOM_POST_TYPE

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_enable_cpt, false, self::CUSTOM_POST_TYPE') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-classic-theme-helper/src/custom-post-types/class-jetpack-portfolio.php line 314
    			}
    
    			// Otherwise, say no unless something wants to filter us to say yes.
    			/** This action is documented in classic-theme-helper/src/custom-post-types/class-nova-restaurant.php */
    			return (bool) apply_filters( 'jetpack_enable_cpt', false, self::CUSTOM_POST_TYPE );
    		}
    
    		/**
    		 * Flush permalinks when CPT option is turned on/off
    		 */
    		public function flush_rules_on_enable() {
    
  • /jetpack_vendor/automattic/jetpack-classic-theme-helper/src/custom-post-types/class-jetpack-testimonial.php line 263
    			}
    
    			// Otherwise, say no unless something wants to filter us to say yes.
    			/** This action is documented in classic-theme-helper/src/custom-post-types/class-nova-restaurant.php */
    			return (bool) apply_filters( 'jetpack_enable_cpt', false, self::CUSTOM_POST_TYPE );
    		}
    
    		/**
    		 * Add to REST API post type allowed list.
    		 *
    		 * @param array $post_types Array of allowed post types.