- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
120 lines
3.5 KiB
PHP
Executable File
120 lines
3.5 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* WP Database Tools
|
|
*
|
|
* This file is read by WordPress to generate the plugin information in the plugin
|
|
* admin area. This file also includes all of the dependencies used by the plugin,
|
|
* registers the activation and deactivation functions, and defines a function
|
|
* that starts the plugin.
|
|
*
|
|
* @link https://wpdatabasetools.com
|
|
* @since 1.0.0
|
|
* @package Wp_Database_Tools
|
|
*
|
|
* @wordpress-plugin
|
|
* Plugin Name: WP Database Tools
|
|
* Plugin URI: https://wpdatabasetools.com
|
|
* Description: Administra la BBDD de tu WordPress.
|
|
* Version: 1.1.1
|
|
* Author: Raiola Networks
|
|
* Author URI: https://wpdatabasetools.com
|
|
* License: GPL-2.0+
|
|
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
|
* Text Domain: wp-database-tools
|
|
* Domain Path: /languages
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if ( ! defined( 'WPINC' ) ) {
|
|
die;
|
|
}
|
|
|
|
/**
|
|
* Currently plugin version.
|
|
* Start at version 1.0.0 and use SemVer - https://semver.org
|
|
* Rename this for your plugin and update it as you release new versions.
|
|
*/
|
|
define( 'WPDBT_VERSION', '1.1.1' );
|
|
|
|
/**
|
|
* Const
|
|
*/
|
|
|
|
define( 'WPDBT_ENV', 'PROD' ); // DEV|PROD.
|
|
define( 'WPDBT_PREFIX', 'wpdbt_' );
|
|
define( 'WPDBT_SLUG', 'wp-database-tools' );
|
|
define( 'WPDBT_CURRENT_LANG', get_bloginfo( 'language' ) );
|
|
define( 'WPDBT_LIST_PAGINATION', array( 15, 50, 100, 200 ) );
|
|
define( 'WPDBT_DEV_DOMAIN', 'http://127.0.0.1:8000' );
|
|
define( 'WPDBT_PROD_DOMAIN', 'https://panel.wpdatabasetools.com' );
|
|
define( 'WPDBT_LOG', false );
|
|
|
|
/**
|
|
* Url's
|
|
*/
|
|
|
|
define( 'WPDBT_ADMIN_URL', plugin_dir_url( __FILE__ ) . 'admin/' );
|
|
|
|
/**
|
|
* EDD vars
|
|
*/
|
|
|
|
// This is the URL our updater / license checker pings. This should be the URL of the site with EDD installed.
|
|
define( 'WPDBT_EDD_STORE_URL', 'https://wpdatabasetools.com' );
|
|
define( 'WPDBT_EDD_ITEM_NAME', 'WP Database Tools' );
|
|
// The download ID. This is the ID of your product in EDD and should match the download ID visible in your Downloads list (see example below).
|
|
define( 'WPDBT_EDD_ITEM_ID', 140 );
|
|
|
|
/**
|
|
* Security
|
|
*/
|
|
|
|
define( 'WPDBT_ENCRYPTION_METHOD', 'AES-128-CBC' );
|
|
define( 'WPDBT_ENCRYPTION_KEY', '58adf8c78efef9570c447295008e2e6e' );
|
|
|
|
/**
|
|
* The code that runs during plugin activation.
|
|
* This action is documented in includes/class-wp-database-tools-activator.php
|
|
*/
|
|
function activate_wp_database_tools() {
|
|
include_once plugin_dir_path( __FILE__ ) . 'includes/class-wp-database-tools-activator.php';
|
|
Wp_Database_Tools_Activator::activate();
|
|
}
|
|
|
|
/**
|
|
* The code that runs during plugin deactivation.
|
|
* This action is documented in includes/class-wp-database-tools-deactivator.php
|
|
*/
|
|
function deactivate_wp_database_tools() {
|
|
include_once plugin_dir_path( __FILE__ ) . 'includes/class-wp-database-tools-deactivator.php';
|
|
Wp_Database_Tools_Deactivator::deactivate();
|
|
}
|
|
|
|
register_activation_hook( __FILE__, 'activate_wp_database_tools' );
|
|
register_deactivation_hook( __FILE__, 'deactivate_wp_database_tools' );
|
|
|
|
/**
|
|
* The core plugin class that is used to define internationalization,
|
|
* admin-specific hooks, and public-facing site hooks.
|
|
*/
|
|
require plugin_dir_path( __FILE__ ) . 'includes/class-wp-database-tools.php';
|
|
|
|
/**
|
|
* Begins execution of the plugin.
|
|
*
|
|
* Since everything within the plugin is registered via hooks,
|
|
* then kicking off the plugin from this point in the file does
|
|
* not affect the page life cycle.
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
function run_wp_database_tools() {
|
|
|
|
$plugin = new Wp_Database_Tools();
|
|
$plugin->run();
|
|
$plugin->run_force_execute_scanner();
|
|
|
|
}
|
|
|
|
run_wp_database_tools();
|