bws_form_restore_default_confirm

The Google Sitemap by BestWebSoft bws form restore default confirm function.

Description

bws_form_restore_default_confirm( (string) $plugin_basename ); 

Parameters (1)

0. $plugin_basename (string)
The plugin basename.

Usage

  1. if ( !function_exists( 'bws_form_restore_default_confirm' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4. // The plugin basename. 
  5. $plugin_basename = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bws_form_restore_default_confirm($plugin_basename); 
  9.  

Defined (1)

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

/bws_menu/bws_functions.php  
  1. function bws_form_restore_default_confirm( $plugin_basename ) { ?> 
  2. <div> 
  3. <p><?php _e( 'Are you sure you want to restore all settings by default?', 'bestwebsoft' ) ?></p> 
  4. <form method="post" action=""> 
  5. <p> 
  6. <button class="button" name="bws_restore_confirm"><?php _e( 'Yes, restore all settings', 'bestwebsoft' ) ?></button> 
  7. <button class="button" name="bws_restore_deny"><?php _e( 'No, go back to the settings page', 'bestwebsoft' ) ?></button> 
  8. <?php wp_nonce_field( $plugin_basename, 'bws_settings_nonce_name' ); ?> 
  9. </p> 
  10. </form> 
  11. </div> 
  12. <?php }