ninja_forms_three_table_exists

The Ninja Forms ninja forms three table exists function.

Description

ninja_forms_three_table_exists(); 

Usage

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

Defined (1)

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

/ninja-forms.php  
  1. function ninja_forms_three_table_exists() { 
  2. global $wpdb; 
  3. $table_name = $wpdb->prefix . 'nf3_forms'; 
  4. return ( $wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name );