ninja_forms_side_sortable

The Ninja Forms ninja forms side sortable function.

Description

ninja_forms_side_sortable(); 

Usage

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

Defined (1)

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

/deprecated/includes/admin/ajax.php  
  1. function ninja_forms_side_sortable() { 
  2.  
  3. // Bail if we aren't in the admin 
  4. if ( ! is_admin() ) 
  5. return false; 
  6.  
  7. check_ajax_referer( 'nf_ajax', 'nf_ajax_nonce' ); 
  8.  
  9. $plugin_settings = nf_get_settings(); 
  10. $page = esc_html( $_REQUEST['page'] ); 
  11. $tab = esc_html( $_REQUEST['tab'] ); 
  12. $order = ninja_forms_esc_html_deep( $_REQUEST['order'] ); 
  13.  
  14. $plugin_settings['sidebars'][$page][$tab] = $order; 
  15. update_option( 'ninja_forms_settings', $plugin_settings ); 
  16.  
  17. die();