wc_get_product_visibility_options()
Get product visibility options.
Hooks from the function
Return
Array
.
Usage
wc_get_product_visibility_options();
Changelog
Since 3.0.0 | Introduced. |
wc_get_product_visibility_options() wc get product visibility options code WC 9.3.1
function wc_get_product_visibility_options() { return apply_filters( 'woocommerce_product_visibility_options', array( 'visible' => __( 'Shop and search results', 'woocommerce' ), 'catalog' => __( 'Shop only', 'woocommerce' ), 'search' => __( 'Search results only', 'woocommerce' ), 'hidden' => __( 'Hidden', 'woocommerce' ), ) ); }