Created
November 19, 2020 11:18
-
-
Save digamber89/af73c5aa23043c83fc072bcab06e180c to your computer and use it in GitHub Desktop.
Show Zoom product in shop pages
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
<?php | |
add_action('vczapi_before_zoom_product_saved','change_zoom_product_on_create'); | |
/** | |
* @param WC_Product $product | |
*/ | |
function change_zoom_product_on_create($product){ | |
$product->set_catalog_visibility('visible'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment