wpcf7_remove_form_tag

The Contact Form 7 wpcf7 remove form tag function.

Description

wpcf7_remove_form_tag( $tag ); 

Parameters (1)

0. $tag
The tag.

Usage

  1. if ( !function_exists( 'wpcf7_remove_form_tag' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/form-tags-manager.php'; 
  3.  
  4. // The tag. 
  5. $tag = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpcf7_remove_form_tag($tag); 
  9.  

Defined (1)

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

/includes/form-tags-manager.php  
  1. function wpcf7_remove_form_tag( $tag ) { 
  2. $manager = WPCF7_FormTagsManager::get_instance(); 
  3.  
  4. return $manager->remove( $tag );