ninja_forms_add_starter_form

Add a starter form.

Description

ninja_forms_add_starter_form(); 

Return the ID.


Usage

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

Defined (1)

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

/deprecated/includes/activation.php  
  1. function ninja_forms_add_starter_form() { 
  2. // load starter form 
  3. $file = file_get_contents( NINJA_FORMS_DIR . "/includes/forms/starter-form.nff" ); 
  4. $file = apply_filters( 'ninja_forms_starter_form_contents', $file ); 
  5.  
  6. // create new form