woocommerce_germanized_taxonomy_args_product_price_label

The WooCommerce Germanized woocommerce germanized taxonomy args product price label hook.

Description

apply_filters( 'woocommerce_germanized_taxonomy_args_product_price_label', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'hierarchical' => false, 'update_count_callback' => '_wc_term_recount', 'label' => __( 'Price Labels', 'woocommerce-germanized' ), 'labels' => array( 'name' => __( 'Price Labels', 'woocommerce-germanized' ), 'singular_name' => __( 'Price Label', 'woocommerce-germanized' ), 'menu_name' => _x( 'Price Labels', 'Admin menu name', 'woocommerce-germanized' ), 'search_items' => __( 'Search Price Labels', 'woocommerce-germanized' ), 'all_items' => __( 'All Price Labels', 'woocommerce-germanized' ), 'edit_item' => __( 'Edit Price Label', 'woocommerce-germanized' ), 'update_item' => __( 'Update Price Label', 'woocommerce-germanized' ), 'add_new_item' => __( 'Add New Price Label', 'woocommerce-germanized' ), 'new_item_name' => __( 'New Price Label Name', 'woocommerce-germanized' ) ), 'show_ui' => true, 'query_var' => true, 'public' => false, 'capabilities' => array( 'manage_terms' => 'manage_product_terms', 'edit_terms' => 'edit_product_terms', 'delete_terms' => 'delete_product_terms', 'assign_terms' => 'assign_product_terms', ), 'rewrite' => false, )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'woocommerce_germanized_taxonomy_args_product_price_label', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_germanized_taxonomy_args_product_price_label callback 
  2. function filter_woocommerce_germanized_taxonomy_args_product_price_label( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_germanized_taxonomy_args_product_price_label', 'filter_woocommerce_germanized_taxonomy_args_product_price_label', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_germanized_taxonomy_args_product_price_label', 'filter_woocommerce_germanized_taxonomy_args_product_price_label', 10, 1 ); 

Defined (1)

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

/includes/class-wc-gzd-post-types.php  
  1. apply_filters( 'woocommerce_germanized_taxonomy_args_product_price_label', array(