Created
September 22, 2022 08:55
-
-
Save GauravKhupse/8a300ab51cb0262194023c2ab517343f to your computer and use it in GitHub Desktop.
add extra Local business sub type
This file contains hidden or 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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment