This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'add_my_custom_meta_field' ); | |
function add_my_custom_meta_field() { | |
add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); | |
add_filter( 'wp_schema_pro_schema_product', 'my_extra_schema_field_mapping', 10, 3 ); | |
} | |
/** | |
* Add fields for mapping. | |
* | |
* @param array $fields Mapping fields array. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'add_my_custom_meta_field' ); | |
function add_my_custom_meta_field() { | |
add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); | |
function my_extra_schema_field( $fields ) { | |
$fields['bsf-aiosrs-local-business']['subkeys']['schema-type']['choices']['TouristAttraction '] = esc_html__( 'Tourist Attraction ', 'wp-schema-pro' | |
); | |
return $fields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'add_my_custom_meta_field' ); | |
function add_my_custom_meta_field() { | |
add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); | |
function my_extra_schema_field( $fields ) { | |
$fields['bsf-aiosrs-local-business']['subkeys']['schema-type']['choices']['RoofingContractor '] = esc_html__( 'Roofing Contractor ', 'wp-schema-pro' | |
); | |
return $fields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ensure_autoembed_on_embed_blocks( $block ) { | |
global $wp_embed; | |
if ( $block['blockName'] === 'core/embed' && strpos( $block['innerContent'][ 0 ], '</iframe>' ) === false ) { | |
$block['innerContent'][ 0 ] = $wp_embed->autoembed( $block['innerContent'][ 0 ] ); | |
} | |
return $block; | |
} | |
add_action('astra_404_content_template','ensure_autoembed_on_embed_blocks_404',10,1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( defined( 'BSF_AIOSRS_PRO_VER' ) && class_exists( 'BSF_AIOSRS_Pro_Markup' ) ) { | |
$instance = BSF_AIOSRS_Pro_Markup::get_instance(); | |
remove_filter( 'the_content', array( $instance, 'rating_markup' ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'add_my_custom_meta_field' ); | |
function add_my_custom_meta_field() { | |
add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); | |
function my_extra_schema_field( $fields ) { | |
$fields['bsf-aiosrs-local-business']['subkeys']['schema-type']['choices']['ExerciseGym '] = esc_html__( 'ExerciseGym ', 'wp-schema-pro' | |
); //you can add as per schema.org name insted ExerciseGym" | |
return $fields; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'add_my_custom_meta_field' ); | |
function add_my_custom_meta_field() { | |
add_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); | |
add_filter( 'wp_schema_pro_schema_service', 'my_extra_schema_field_mapping', 10, 3 ); | |
} | |
/** | |
* Add fields for mapping. | |
* | |
* @param array $fields Mapping fields array. |
OlderNewer