pods_frontier_template_commands

Add additional control blocks to Pods templates.

Description

(array) apply_filters( 'pods_frontier_template_commands', (array) $commands ); 

Can also be use to remove each/once/before/after/if functionality from Pods Templates

Returns (array)

An array of control blocks, and shortcodes used to power them.

Parameters (1)

0. $commands (array)
The control blocks in the form of tag => shortcode

Usage

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

Defined (1)

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

/components/Templates/includes/functions-view_template.php  
  1. $commands = apply_filters( 'pods_frontier_template_commands', $commands );