wpcf7sn_get_plugin_options

The Contact Form 7 Serial Numbers wpcf7sn get plugin options function.

Description

wpcf7sn_get_plugin_options(); 

Usage

  1. if ( !function_exists( 'wpcf7sn_get_plugin_options' ) ) { 
  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_get_plugin_options(); 
  7.  

Defined (1)

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

/uninstall.php  
  1. function wpcf7sn_get_plugin_options() { 
  2. global $wpdb; 
  3.  
  4. $values = array(); 
  5. $results = $wpdb->get_results( " 
  6. SELECT * 
  7. FROM $wpdb->options 
  8. WHERE 1 = 1 
  9. AND option_name like 'nklab_wpcf7sn_%' 
  10. ORDER BY option_name 
  11. " ); 
  12.  
  13. foreach ( $results as $result ) { 
  14. $values[ $result->option_name ] = $result->option_value; 
  15.  
  16. return $values;