wcv_template_overrides_scan_paths

Description

apply_filters( 'wcv_template_overrides_scan_paths', array( 'wc-vendors', $this->plugin_base_dir . '/templates/' ) )

Parameters (1) (array)

Usage Examples

To run the filter, copy this sample

$array_val = apply_filters( 'wcv_template_overrides_scan_paths', $param );
  if ( ! empty( $array_val ) ) {

    // what has been modified...

}

To make a callback function, copy this sample

// the filter wcv_template_overrides_scan_paths callback
function filter_wcv_template_overrides_scan_paths( $param ) {
  // do your thing here :-) ... 

  return $array_val; 
}
add_filter( 'wcv_template_overrides_scan_paths', 'filter_wcv_template_overrides_scan_paths', 10, 1 );

To remove the filter, copy this sample

 //remove the filter
remove_filter( 'wcv_template_overrides_scan_paths', 'filter_wcv_template_overrides_scan_paths', 10, 1 );

Defined

This filter is defined in the following source file(s)

  • wcvendors-pro/admin/partials/wcvendors-pro-template-status.php line 23
    $template_paths     = apply_filters( 'wcv_template_overrides_scan_paths', array( 'wc-vendors', $this->plugin_base_dir . '/templates/' ) );

filters

Updated on January 9, 2017

Was this article helpful?