Created
March 26, 2018 14:07
-
-
Save madeincosmos/a002ca735296992b3b5f1001e5d8d83c to your computer and use it in GitHub Desktop.
WooCommerce Google Product Feed - allow prepopulating the Condition field
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
function custom_gpf_can_prepopulate_condition ( $feedData ) { | |
$feedData['condition']['can_prepopulate'] = true; | |
return $feedData; | |
} | |
add_filter( 'woocommerce_gpf_all_product_fields', 'custom_gpf_can_prepopulate_condition', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment