bws_form_restore_default_settings

The Google Captcha (reCAPTCHA) by BestWebSoft bws form restore default settings function.

Description

bws_form_restore_default_settings( (string) $plugin_basename, (string) $change_permission_attr = '' ); 

Parameters (2)

0. $plugin_basename (string)
The plugin basename.
1. $change_permission_attr — Optional. (string) => ''
The change permission attr.

Usage

  1. if ( !function_exists( 'bws_form_restore_default_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-captcha-recaptcha-by-bestwebsoft/bws_menu/deprecated.php'; 
  3.  
  4. // The plugin basename. 
  5. $plugin_basename = ''; 
  6.  
  7. // The change permission attr. 
  8. $change_permission_attr = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bws_form_restore_default_settings($plugin_basename, $change_permission_attr); 
  12.  

Defined (1)

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

/bws_menu/deprecated.php  
  1. function bws_form_restore_default_settings( $plugin_basename, $change_permission_attr = '' ) { ?> 
  2. <form method="post" action=""> 
  3. <p><?php _e( 'Restore all plugin settings to defaults', 'bestwebsoft' ); ?></p> 
  4. <p> 
  5. <input <?php echo $change_permission_attr; ?> type="submit" class="button" value="<?php _e( 'Restore settings', 'bestwebsoft' ); ?>" /> 
  6. </p> 
  7. <input type="hidden" name="bws_restore_default" value="submit" /> 
  8. <?php wp_nonce_field( $plugin_basename, 'bws_settings_nonce_name' ); ?> 
  9. </form> 
  10. <?php }