acf/schema/enabled_post_types
acf/schema/enabled_post_types
Appears in: advanced-custom-fields.6.8.0
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.8.0apply_filters('acf/schema/enabled_post_types') is found 1 times:
- /src/AI/GEO/Outputs/Posts.php line 102
* Filters the list of post types that have JSON-LD output enabled. * * @param array $enabled_post_types Array of post type names with JSON-LD enabled. */ $enabled_post_types = apply_filters( 'acf/schema/enabled_post_types', $enabled_post_types ); // Exit if current post type is not in the enabled list. if ( ! in_array( $post_type, $enabled_post_types, true ) ) { if ( $debug ) { echo '<!-- ACF AI JSON-LD: Post type \'' . esc_html( $post_type ) . "' does not have JSON-LD enabled -->\n"; }