woocommerce_protected_product_add_to_cart()
Deprecated since 3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
No Hooks.
Returns
true|false.
Usage
woocommerce_protected_product_add_to_cart( $passed, $product_id );
- $passed(required)
- .
- $product_id(required)
- .
Changelog
| Deprecated since | 3.0 |
woocommerce_protected_product_add_to_cart() woocommerce protected product add to cart code WC 10.7.0
function woocommerce_protected_product_add_to_cart( $passed, $product_id ) {
wc_deprecated_function( __FUNCTION__, '3.0', 'wc_protected_product_add_to_cart' );
return wc_protected_product_add_to_cart( $passed, $product_id );
}