Last active
August 12, 2021 10:56
-
-
Save GauravKhupse/4d57ac52dd691a5fb89ea07a6d33da0a to your computer and use it in GitHub Desktop.
Schema Pro: Backorder availability option in product schema
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_availability_options', 'my_extra_schema_field' ); | |
function my_extra_schema_field( $fields ) { | |
$fields['BackOrder '] = esc_html__( 'BackOrder ', 'wp-schema-pro' | |
); | |
return $fields; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment