field_type_exists

The Advanced Custom Fields field type exists function.

Description

field_type_exists( (string) $name ); 

Parameters (1)

0. $name (string)
The name.

Usage

  1. if ( !function_exists( 'field_type_exists' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-custom-fields/core/views/meta_box_fields.php'; 
  3.  
  4. // The name. 
  5. $name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = field_type_exists($name); 
  9.  

Defined (1)

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

/core/views/meta_box_fields.php  
  1. function field_type_exists( $name ) 
  2. global $field_types; 
  3.  
  4. foreach( $field_types as $category ) 
  5. if( isset( $category[ $name ] ) ) 
  6. return $category[ $name ]; 
  7.  
  8. return false;