acf/schema/enabled_post_types
Filters the list of post types that have JSON-LD output enabled.
Usage
add_filter( 'acf/schema/enabled_post_types', 'wp_kama_acf_schema_enabled_post_types_filter' );
/**
* Function for `acf/schema/enabled_post_types` filter-hook.
*
* @param array $enabled_post_types Array of post type names with JSON-LD enabled.
*
* @return array
*/
function wp_kama_acf_schema_enabled_post_types_filter( $enabled_post_types ){
// filter...
return $enabled_post_types;
}
- $enabled_post_types(array)
- Array of post type names with JSON-LD enabled.
Where the hook is called
acf/schema/enabled_post_types
acf/src/AI/GEO/Outputs/Posts.php 102
$enabled_post_types = apply_filters( 'acf/schema/enabled_post_types', $enabled_post_types );