ninja_forms_pre_process_shortcode

The Ninja Forms ninja forms pre process shortcode function.

Description

ninja_forms_pre_process_shortcode( $content ); 

Parameters (1)

0. $content
The content.

Usage

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

Defined (1)

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

/deprecated/includes/shortcode.php  
  1. function ninja_forms_pre_process_shortcode($content) { 
  2. global $shortcode_tags; 
  3. // Remove our previously registered shortcode. 
  4. //remove_shortcode( 'ninja_forms_display_form' ); 
  5. // Backup current registered shortcodes and clear them all out 
  6. $current_shortcodes = $shortcode_tags; 
  7. $shortcode_tags = array(); 
  8. // Do the shortcode (only the one above is registered) 
  9. $content = do_shortcode($content); 
  10. // Put the original shortcodes back 
  11. $shortcode_tags = $current_shortcodes; 
  12. return $content;