bbp_admin_reset

Admin reset page.

Description

bbp_admin_reset(); 

Usage

  1. if ( !function_exists( 'bbp_admin_reset' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/tools.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_admin_reset(); 
  7.  

Defined (1)

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

/includes/admin/tools.php  
  1. function bbp_admin_reset() { 
  2. ?> 
  3.  
  4. <div class="wrap"> 
  5.  
  6. <?php screen_icon( 'tools' ); ?> 
  7.  
  8. <h2 class="nav-tab-wrapper"><?php bbp_tools_admin_tabs( __( 'Reset Forums', bbpress ) ); ?></h2> 
  9. <p><?php esc_html_e( 'Revert your forums back to a brand new installation. This process cannot be undone.', bbpress ); ?></p> 
  10. <p><strong><?php esc_html_e( 'Backup your database before proceeding.', bbpress ); ?></strong></p> 
  11.  
  12. <form class="settings" method="post" action=""> 
  13. <table class="form-table"> 
  14. <tbody> 
  15. <tr valign="top"> 
  16. <th scope="row"><?php esc_html_e( 'The following data will be removed:', bbpress ) ?></th> 
  17. <td> 
  18. <?php esc_html_e( 'All Forums', bbpress ); ?><br /> 
  19. <?php esc_html_e( 'All Topics', bbpress ); ?><br /> 
  20. <?php esc_html_e( 'All Replies', bbpress ); ?><br /> 
  21. <?php esc_html_e( 'All Topic Tags', bbpress ); ?><br /> 
  22. <?php esc_html_e( 'Related Meta Data', bbpress ); ?><br /> 
  23. <?php esc_html_e( 'Forum Settings', bbpress ); ?><br /> 
  24. <?php esc_html_e( 'Forum Activity', bbpress ); ?><br /> 
  25. <?php esc_html_e( 'Forum User Roles', bbpress ); ?><br /> 
  26. <?php esc_html_e( 'Importer Helper Data', bbpress ); ?><br /> 
  27. </td> 
  28. </tr> 
  29. <tr valign="top"> 
  30. <th scope="row"><?php esc_html_e( 'Delete imported users?', bbpress ); ?></th> 
  31. <td> 
  32. <fieldset> 
  33. <legend class="screen-reader-text"><span><?php esc_html_e( "Say it ain't so!", bbpress ); ?></span></legend> 
  34. <label><input type="checkbox" class="checkbox" name="bbpress-delete-imported-users" id="bbpress-delete-imported-users" value="1" /> <?php esc_html_e( 'This option will delete all previously imported users, and cannot be undone.', bbpress ); ?></label> 
  35. <p class="description"><?php esc_html_e( 'Note: Resetting without this checked will delete the meta-data necessary to delete these users.', bbpress ); ?></p> 
  36. </fieldset> 
  37. </td> 
  38. </tr> 
  39. <tr valign="top"> 
  40. <th scope="row"><?php esc_html_e( 'Are you sure you want to do this?', bbpress ); ?></th> 
  41. <td> 
  42. <fieldset> 
  43. <legend class="screen-reader-text"><span><?php esc_html_e( "Say it ain't so!", bbpress ); ?></span></legend> 
  44. <label><input type="checkbox" class="checkbox" name="bbpress-are-you-sure" id="bbpress-are-you-sure" value="1" /> <?php esc_html_e( 'This process cannot be undone.', bbpress ); ?></label> 
  45. <p class="description"><?php esc_html_e( 'Human sacrifice, dogs and cats living together... mass hysteria!', bbpress ); ?></p> 
  46. </fieldset> 
  47. </td> 
  48. </tr> 
  49. </tbody> 
  50. </table> 
  51.  
  52. <fieldset class="submit"> 
  53. <input class="button-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Reset bbPress', bbpress ); ?>" /> 
  54. <?php wp_nonce_field( 'bbpress-reset' ); ?> 
  55. </fieldset> 
  56. </form> 
  57. </div> 
  58.  
  59. <?php