wc_get_product_visibility_options

Get product visibility options.

Description

(array) wc_get_product_visibility_options(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_product_visibility_options' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-product-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_product_visibility_options(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-product-functions.php  
  1. function wc_get_product_visibility_options() { 
  2. return apply_filters( 'woocommerce_product_visibility_options', array( 
  3. 'visible' => __( 'Visible', woocommerce ),  
  4. 'catalog' => __( 'Catalog', woocommerce ),  
  5. 'search' => __( 'Search', woocommerce ),  
  6. 'hidden' => __( 'Hidden', woocommerce ),  
  7. ) );