PluginProbe
Database Reset / 3.18
Database Reset v3.18
2.3.2 3.0 3.0.1 3.0.2 3.1 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 trunk 1.0 1.2 1.2.1 1.2.2 1.3 1.4 2.0 2.1 All 27 releases
wordpress-database-reset / wp-reset.php

wp-reset.php in Database Reset 3.18, at wp-reset.php

56 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: WP Database Reset
4 Plugin URI: https://wordpress.org/plugins/wordpress-database-reset/
5 Description: Reset all or some WP database tables back to their original state.
6 Version: 3.18
7 Author: WebFactory Ltd
8 Author URI: https://www.webfactoryltd.com/
9 License: GNU General Public License
10 Text-domain: wordpress-database-reset
11
12 Copyright 2011 - 2021 WebFactory Ltd (email: support@webfactoryltd.com)
13
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License, version 2, as
16 published by the Free Software Foundation.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 */
27
28 define( 'DB_RESET_VERSION', '3.18' );
29 define( 'DB_RESET_PATH', dirname( __FILE__ ) );
30 define( 'DB_RESET_NAME', basename( DB_RESET_PATH ) );
31 define( 'DB_RESET_FILE', __FILE__ );
32 define( 'AUTOLOADER', DB_RESET_PATH . '/lib/class-plugin-autoloader.php' );
33
34 require_once( DB_RESET_PATH . '/lib/helpers.php' );
35
36 require_once dirname(__FILE__) . '/wf-flyout/wf-flyout.php';
37 new wf_flyout(__FILE__);
38
39 register_activation_hook( __FILE__, 'db_reset_activate' );
40
41 load_plugin_textdomain( 'wordpress-database-reset' );
42
43 if ( file_exists( AUTOLOADER ) ) {
44 require_once( AUTOLOADER );
45 new Plugin_Autoloader( DB_RESET_PATH );
46
47 add_action(
48 'wp_loaded',
49 array ( new DB_Reset_Manager( DB_RESET_VERSION ), 'run' )
50 );
51 }
52
53 if ( is_command_line() ) {
54 require_once( __DIR__ . '/class-db-reset-command.php' );
55 }
56