pods_require_component

Require a component (always-on).

Description

pods_require_component( (string) $component ); 

Parameters (1)

0. $component (string)
The component.

Usage

  1. if ( !function_exists( 'pods_require_component' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/includes/general.php'; 
  3.  
  4. // The component. 
  5. $component = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pods_require_component($component); 
  9.  

Defined (1)

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

/includes/general.php  
  1. function pods_require_component ( $component ) { 
  2. add_filter( 'pods_component_require_' . $component, '__return_true' );