twentytwenty_disallowed_post_types_for_meta_output

twentytwenty_disallowed_post_types_for_meta_output

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.0.3

apply_filters('twentytwenty_disallowed_post_types_for_meta_output') is found 1 times:

  • /wp-content/themes/twentytwenty/inc/template-tags.php line 264
    	 * @since Twenty Twenty 1.0
    	 *
    	 * @param array Array of post types.
    	 */
    	$disallowed_post_types = apply_filters( 'twentytwenty_disallowed_post_types_for_meta_output', array( 'page' ) );
    
    	// Check whether the post type is allowed to output post meta.
    	if ( in_array( get_post_type( $post_id ), $disallowed_post_types, true ) ) {
    		return;
    	}