bbp_admin_reset()

Admin reset page

Description

Source

File: bp-forums/admin/tools.php

1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
function bbp_admin_reset() {
?>
 
    <div class="wrap">
        <h2 class="nav-tab-wrapper"><?php bp_core_admin_tabs( __( 'Tools', 'buddyboss' ) ); ?></h2>
        <div class="nav-settings-subsubsub">
            <ul class="subsubsub">
                <?php bp_core_tools_settings_admin_tabs(); ?>
            </ul>
        </div>
    </div>
    <div class="wrap">
 
        <p><?php esc_html_e( 'Revert your forums back to a brand new installation. This process cannot be undone.', 'buddyboss' ); ?></p>
        <p><strong><?php esc_html_e( 'Backup your database before proceeding.', 'buddyboss' ); ?></strong></p>
 
        <form class="settings" method="post" action="">
            <table class="form-table">
                <tbody>
                    <tr valign="top">
                        <th scope="row"><?php esc_html_e( 'The following data will be removed:', 'buddyboss' ) ?></th>
                        <td>
                            <?php esc_html_e( 'Forums',                  'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Discussions',         'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Replies',             'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Discussion Tags',     'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Related Meta Data',       'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Forum Settings',          'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Forum Activity',          'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Forum User Roles',        'buddyboss' ); ?><br />
                            <?php esc_html_e( 'Importer Helper Data',    'buddyboss' ); ?><br />
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row"><?php esc_html_e( 'Delete imported users?', 'buddyboss' ); ?></th>
                        <td>
                            <fieldset>
                                <legend class="screen-reader-text"><span><?php esc_html_e( "Say it ain't so!", 'buddyboss' ); ?></span></legend>
                                <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.', 'buddyboss' ); ?></label>
                                <p class="description"><?php esc_html_e( 'Note: Resetting without this checked will delete the meta-data necessary to delete these users.', 'buddyboss' ); ?></p>
                            </fieldset>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th scope="row"><?php esc_html_e( 'Are you sure you want to do this?', 'buddyboss' ); ?></th>
                        <td>
                            <fieldset>
                                <legend class="screen-reader-text"><span><?php esc_html_e( "Say it ain't so!", 'buddyboss' ); ?></span></legend>
                                <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.', 'buddyboss' ); ?></label>
                                <p class="description"><?php esc_html_e( 'Human sacrifice, dogs and cats living together&hellip;mass hysteria!', 'buddyboss' ); ?></p>
                            </fieldset>
                        </td>
                    </tr>
                </tbody>
            </table>
 
            <fieldset class="submit">
                <input class="button-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Reset Forums', 'buddyboss' ); ?>" />
                <?php wp_nonce_field( 'bbpress-reset' ); ?>
            </fieldset>
        </form>
    </div>
 
<?php
}

Changelog

Changelog
Version Description
bbPress (r2613) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.