woocommerce_gzd_template_name
The WooCommerce Germanized woocommerce gzd template name hook.
Description
Parameters (1)
- 0. $template_name (string)
- The template name.
Usage
- To run the hook, copy the example below.
- $template_name = apply_filters( 'woocommerce_gzd_template_name', $template_name );
- if ( !empty( $template_name ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_gzd_template_name callback
- function filter_woocommerce_gzd_template_name( $template_name ) {
- // make filter magic happen here...
- return $template_name;
- };
- // add the filter
- add_filter( 'woocommerce_gzd_template_name', 'filter_woocommerce_gzd_template_name', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_gzd_template_name', 'filter_woocommerce_gzd_template_name', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /woocommerce-germanized.php
- $template_name = apply_filters( 'woocommerce_gzd_template_name', $template_name );