ninja_forms_register_common_field_type_groups

The Ninja Forms ninja forms register common field type groups function.

Description

ninja_forms_register_common_field_type_groups(); 

Usage

  1. if ( !function_exists( 'ninja_forms_register_common_field_type_groups' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/field-type-groups.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_register_common_field_type_groups(); 
  7.  

Defined (1)

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

/deprecated/includes/field-type-groups.php  
  1. function ninja_forms_register_common_field_type_groups() { 
  2. $args = array( 
  3. 'name' => __( 'Standard Fields', 'ninja-forms' ),  
  4. ); 
  5. ninja_forms_register_field_type_group( 'standard_fields', $args ); 
  6.  
  7. $args = array( 
  8. 'name' => __( 'Layout Elements', 'ninja-forms' ),  
  9. ); 
  10. ninja_forms_register_field_type_group( 'layout_elements', $args ); 
  11.  
  12. $add_field = apply_filters( 'ninja_forms_use_post_fields', false ); 
  13. if ( !$add_field ) 
  14. return false; 
  15.  
  16. $args = array( 
  17. 'name' => __( 'Post Creation', 'ninja-forms' ),  
  18. ); 
  19. ninja_forms_register_field_type_group( 'create_post', $args );