create_field

Create_field().

Description

create_field( $field ); 

This function will creat the HTML for a field

Parameters (1)

0. $field
The field.

Usage

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

Defined (1)

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

/core/api.php  
  1. function create_field( $field ) 
  2. do_action('acf/create_field', $field );