pods_component_require_<id>

Add menu item.

Description

apply_filters( 'pods_component_require_<id>', (unknown) $component_data_mustuse, (unknown) $component_data ); 

Parameters (2)

0. $component_data_mustuse (unknown)
The component data mustuse.
1. $component_data (unknown)
The component data.

Usage

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

Defined (2)

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

/classes/PodsComponents.php  
  1. $component_data[ 'MustUse' ] = apply_filters( 'pods_component_require_' . $component_data[ 'ID' ], $component_data[ 'MustUse' ], $component_data ); 
  1. $component_data[ 'MustUse' ] = apply_filters( 'pods_component_require_' . $component_data[ 'ID' ], $component_data[ 'MustUse' ], $component_data );