woocommerce_gzd_template_overrides_scan_plugin_dir

The WooCommerce Germanized woocommerce gzd template overrides scan plugin dir hook.

Description

apply_filters( 'woocommerce_gzd_template_overrides_scan_plugin_dir', (unknown) $wc, (string) $plugin_name, (unknown) $file ); 

Parameters (3)

0. $wc (unknown) => WC()->plugin_path() . '/templates/' . $file
The wc.
1. $plugin_name (string)
The plugin name.
2. $file (unknown)
The file.

Usage

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

Defined (1)

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

/includes/admin/views/html-page-status-germanized.php  
  1. $core_version = WC_Admin_Status::get_file_version( apply_filters( 'woocommerce_gzd_template_overrides_scan_plugin_dir', WC()->plugin_path() . '/templates/' . $file, $plugin_name, $file ) );