wpseo_load_schema_templates

wpseo_load_schema_templates

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.20.3

apply_filters('wpseo_load_schema_templates') is found 1 times:

  • /src/integrations/schema-blocks.php line 139
    		 * Filter: 'wpseo_load_schema_templates' - Allow adding additional schema templates.
    		 *
    		 * @param array $templates The templates to filter.
    		 */
    		$templates = \apply_filters( 'wpseo_load_schema_templates', $templates );
    		if ( ! \is_array( $templates ) || empty( $templates ) ) {
    			return;
    		}
    
    		foreach ( $templates as $template ) {
    			if ( ! \file_exists( $template ) ) {