WPCF7_ShortcodeManager

The Contact Form 7 WPCF7 ShortcodeManager class.

Defined (1)

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

/includes/shortcodes.php  
  1. class WPCF7_ShortcodeManager { 
  2.  
  3. private static $form_tags_manager; 
  4.  
  5. private function __construct() {} 
  6.  
  7. public static function get_instance() { 
  8. wpcf7_deprecated_function( __METHOD__, '4.6',  
  9. 'WPCF7_FormTagsManager::get_instance' ); 
  10.  
  11. self::$form_tags_manager = WPCF7_FormTagsManager::get_instance(); 
  12. return new self; 
  13.  
  14. public function get_scanned_tags() { 
  15. wpcf7_deprecated_function( __METHOD__, '4.6',  
  16. 'WPCF7_FormTagsManager::get_scanned_tags' ); 
  17.  
  18. return self::$form_tags_manager->get_scanned_tags(); 
  19.  
  20. public function add_shortcode( $tag, $func, $has_name = false ) { 
  21. wpcf7_deprecated_function( __METHOD__, '4.6',  
  22. 'WPCF7_FormTagsManager::add' ); 
  23.  
  24. return self::$form_tags_manager->add( $tag, $func, $has_name ); 
  25.  
  26. public function remove_shortcode( $tag ) { 
  27. wpcf7_deprecated_function( __METHOD__, '4.6',  
  28. 'WPCF7_FormTagsManager::remove' ); 
  29.  
  30. return self::$form_tags_manager->remove( $tag ); 
  31.  
  32. public function normalize_shortcode( $content ) { 
  33. wpcf7_deprecated_function( __METHOD__, '4.6',  
  34. 'WPCF7_FormTagsManager::normalize' ); 
  35.  
  36. return self::$form_tags_manager->normalize( $content ); 
  37.  
  38. public function do_shortcode( $content, $exec = true ) { 
  39. wpcf7_deprecated_function( __METHOD__, '4.6',  
  40. 'WPCF7_FormTagsManager::replace_all' ); 
  41.  
  42. if ( $exec ) { 
  43. return self::$form_tags_manager->replace_all( $content ); 
  44. } else { 
  45. return self::$form_tags_manager->scan( $content ); 
  46.  
  47. public function scan_shortcode( $content ) { 
  48. wpcf7_deprecated_function( __METHOD__, '4.6',  
  49. 'WPCF7_FormTagsManager::scan' ); 
  50.  
  51. return self::$form_tags_manager->scan( $content );