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_availability_options', 'my_extra_schema_field' ); | |
| function my_extra_schema_field( $fields ) { | |
| $fields['BackOrder '] = esc_html__( 'BackOrder ', 'wp-schema-pro' | |
| ); |
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_filter( 'wp_schema_pro_schema_product', 'my_extra_schema_field_mapping', 10, 3 ); | |
| /** | |
| * Mapping extra field for schema markup. | |
| * | |
| * @param array $schema Schema array. | |
| * @param array $data Mapping fields array. | |
| * @return array |
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' ); | |
| 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 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_filter( 'wp_schema_pro_schema_meta_fields', 'my_extra_schema_field' ); | |
| add_filter( 'wp_schema_pro_schema_local_business', 'my_extra_schema_field_mapping', 10, 3 ); | |
| function my_extra_schema_field( $fields ) { | |
| $fields['bsf-aiosrs-local-business']['subkeys']['servesCuisine'] = array( // `bsf-aiosrs-book` used for Book, `bsf-aiosrs-event` will for Event like that. | |
| 'label' => esc_html__( 'Serves Cuisine', 'aiosrs-pro' ), // Label to display in Mapping fields |
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' ); | |
| add_filter( 'wp_schema_pro_schema_person', 'my_extra_schema_field_mapping', 10, 3 ); | |
| } | |
| /** | |
| * Add fields for mapping. | |
| * | |
| * @param array $fields Mapping fields array. |
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
| .woocommerce form .show-password-input, .woocommerce-page form .show-password-input { | |
| position: relative; | |
| cursor: pointer; | |
| } | |
| .woocommerce form .show-password-input::after, .woocommerce-page form .show-password-input::after { | |
| right: 0.7em; | |
| top: 0.4em; | |
| cursor: pointer; | |
| position: absolute; |
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' ); | |
| add_filter( 'wp_schema_pro_schema_local_business', 'my_extra_schema_field_mapping', 10, 3 ); | |
| } | |
| /** | |
| * Add fields for mapping. | |
| * | |
| * @param array $fields Mapping fields array. |
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' ); | |
| add_filter( 'wp_schema_pro_schema_article', 'my_extra_schema_field_mapping', 10, 3 ); | |
| } | |
| /** | |
| * Add fields for mapping. | |
| * | |
| * @param array $fields Mapping fields array. |
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_filter( 'wp_schema_pro_schema_product', 'my_brand_field_mapping', 10, 3 ); | |
| /** | |
| * Mapping extra field for schema markup. | |
| * | |
| * @param array $schema Schema array. | |
| * @param array $data Mapping fields array. | |
| * @return array | |
| */ | |
| function my_brand_field_mapping( $schema, $data, $post ) { |
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_filter( 'wp_schema_pro_schema_review', 'my_extra_schema_field_mapping', 10, 3 ); | |
| /** | |
| * Mapping extra field for schema markup. | |
| * | |
| * @param array $schema Schema array. | |
| * @param array $data Mapping fields array. | |
| * @return array | |
| */ | |
| function my_extra_schema_field_mapping( $schema, $data, $post ) { |
OlderNewer