ninja_forms_sidebar_fav_fields

The Ninja Forms ninja forms sidebar fav fields function.

Description

ninja_forms_sidebar_fav_fields(); 

Usage

  1. if ( !function_exists( 'ninja_forms_sidebar_fav_fields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/fav-fields.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = ninja_forms_sidebar_fav_fields(); 
  7.  

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms/tabs/field-settings/sidebars/fav-fields.php  
  1. function ninja_forms_sidebar_fav_fields() { 
  2. $field_results = ninja_forms_get_all_favs(); 
  3.  
  4. if(is_array($field_results)) { 
  5. foreach($field_results as $field) { 
  6. $data = $field['data']; 
  7. $name = $field['name']; 
  8. $field_id = $field['id']; 
  9. ?> 
  10. <p class="button-controls" id="ninja_forms_insert_fav_field_<?php echo $field_id;?>_p"> 
  11. <a class="button-secondary ninja-forms-insert-fav-field" id="ninja_forms_insert_fav_field_<?php echo $field_id;?>" data-field="<?php echo $field_id; ?>" data-type="fav" href="#"><?php _e($name, 'ninja-forms');?></a> 
  12. </p> 
  13. <?php