wpcf7sn_delete_plugin

The Contact Form 7 Serial Numbers wpcf7sn delete plugin function.

Description

wpcf7sn_delete_plugin(); 

Usage

  1. if ( !function_exists( 'wpcf7sn_delete_plugin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-serial-numbers/uninstall.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcf7sn_delete_plugin(); 
  7.  

Defined (1)

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

/uninstall.php  
  1. function wpcf7sn_delete_plugin() { 
  2. global $wpdb; 
  3.  
  4.  
  5. $option_file = dirname( __FILE__ ) . '/' . 'wpcf7sn_options.txt'; 
  6. if ( file_exists( $option_file ) ) { 
  7. unlink( $option_file ); 
  8. foreach( $options as $key=>$valuve ) { 
  9. delete_option( $key );