wc_ps_after_template_part

The WooCommerce Predictive Search LITE wc ps after template part hook.

Description

do_action( 'wc_ps_after_template_part', (string) $template_name, (unknown) $template_file_path, (unknown) $args ); 

Parameters (3)

0. $template_name (string)
The template name.
1. $template_file_path (unknown)
The template file path.
2. $args (unknown)
The args.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'wc_ps_after_template_part', $template_name, $template_file_path, $args ); 
The following example is for adding a hook callback.
  1. // define the wc_ps_after_template_part callback 
  2. function action_wc_ps_after_template_part( $template_name, $template_file_path, $args ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'wc_ps_after_template_part', 'action_wc_ps_after_template_part', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'wc_ps_after_template_part', 'action_wc_ps_after_template_part', 10, 3 ); 

Defined (1)

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

/includes/wc-predictive-template-functions.php  
  1. do_action( 'wc_ps_after_template_part', $template_name, $template_file_path, $args );