nf_step_processing_js

Enqueue our step processing JS.

Description

nf_step_processing_js(); 

Usage

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

Defined (2)

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

/deprecated/includes/admin/step-processing.php  
  1. function nf_step_processing_js() { 
  2. if ( defined( 'NINJA_FORMS_JS_DEBUG' ) && NINJA_FORMS_JS_DEBUG ) { 
  3. $suffix = ''; 
  4. $src = 'dev'; 
  5. } else { 
  6. $suffix = '.min'; 
  7. $src = 'min'; 
  8. wp_enqueue_script( 'nf-processing',  
  9. NF_PLUGIN_URL . 'assets/js/' . $src . '/step-processing' . $suffix . '.js',  
  10. array( 'jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-datepicker', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-progressbar' ) ); 
  11. $step_labels = apply_filters( 'nf_step_processing_labels', array( 
  12. 'Lacing Our Tabis',  
  13. 'Cleaning The Dojo',  
  14. 'Doing Splits',  
  15. 'Buffing Bo Staff',  
  16. 'Intimidating Gaze',  
  17. 'Sparring',  
  18. 'Packing Smoke Bombs',  
  19. 'Polishing Shuriken',  
  20. 'Throwing Sais',  
  21. 'Calling Our Mom',  
  22. 'Practicing Katas',  
  23. 'Swinging Nunchucks',  
  24. 'Sharpening Swords',  
  25. 'Ironing Ninja Gi',  
  26. 'Eating Breakfast',  
  27. 'Cutting Stuff',  
  28. 'Doing Dishes',  
  29. 'Climbing Walls' 
  30. ) ); 
  31.  
  32.  
  33. wp_localize_script( 'nf-processing', 'nf_processing', array( 'step_labels' => $step_labels ) ); 
/lib/StepProcessing/menu.php  
  1. function nf_step_processing_js() { 
  2. wp_enqueue_script( 'nf-processing',  
  3. Ninja_Forms::$url . 'deprecated/assets/js/dev/step-processing.js',  
  4. array( 'jquery', 'jquery-ui-core', 'jquery-ui-sortable', 'jquery-ui-datepicker', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-progressbar' ) ); 
  5.  
  6. $step_labels = apply_filters( 'nf_step_processing_labels', array( 
  7. 'Lacing Our Tabis',  
  8. 'Cleaning The Dojo',  
  9. 'Doing Splits',  
  10. 'Buffing Bo Staff',  
  11. 'Intimidating Gaze',  
  12. 'Sparring',  
  13. 'Packing Smoke Bombs',  
  14. 'Polishing Shuriken',  
  15. 'Throwing Sais',  
  16. 'Calling Our Mom',  
  17. 'Practicing Katas',  
  18. 'Swinging Nunchucks',  
  19. 'Sharpening Swords',  
  20. 'Ironing Ninja Gi',  
  21. 'Eating Breakfast',  
  22. 'Cutting Stuff',  
  23. 'Doing Dishes',  
  24. 'Climbing Walls' 
  25. ) ); 
  26.  
  27.  
  28. wp_localize_script( 'nf-processing', 'nf_processing', array( 'step_labels' => $step_labels ) );