Skip to content

Commit

Permalink
Fixed wrong prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulsky committed Sep 17, 2024
1 parent 7feb3c1 commit b36f5f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions includes/class-wdevs-tax-switch.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class Wdevs_Tax_Switch {
* @since 1.0.0
*/
public function __construct() {
if ( defined( 'WOO_TAX_SWITCH_VERSION' ) ) {
$this->version = WOO_TAX_SWITCH_VERSION;
if ( defined( 'WDEVS_TAX_SWITCH_VERSION' ) ) {
$this->version = WDEVS_TAX_SWITCH_VERSION;
} else {
$this->version = '1.0.0';
}
Expand Down
14 changes: 7 additions & 7 deletions wdevs-tax-switch.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
* 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( 'WOO_TAX_SWITCH_VERSION', '1.0.0' );
define( 'WDEVS_TAX_SWITCH_VERSION', '1.0.0' );

/**
* The code that runs during plugin activation.
* This action is documented in includes/class-wdevs-tax-switch-activator.php
*/
function activate_wdevs_tax_switch() {
function wdevs_tax_switch_activate() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wdevs-tax-switch-activator.php';
Wdevs_Tax_Switch_Activator::activate();
}
Expand All @@ -56,13 +56,13 @@ function activate_wdevs_tax_switch() {
* The code that runs during plugin deactivation.
* This action is documented in includes/class-wdevs-tax-switch-deactivator.php
*/
function deactivate_wdevs_tax_switch() {
function wdevs_tax_switch_deactivate() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wdevs-tax-switch-deactivator.php';
Wdevs_Tax_Switch_Deactivator::deactivate();
}

register_activation_hook( __FILE__, 'activate_wdevs_tax_switch' );
register_deactivation_hook( __FILE__, 'deactivate_wdevs_tax_switch' );
register_activation_hook( __FILE__, 'wdevs_tax_switch_activate' );
register_deactivation_hook( __FILE__, 'wdevs_tax_switch_deactivate' );

/**
* The core plugin class that is used to define internationalization,
Expand All @@ -79,11 +79,11 @@ function deactivate_wdevs_tax_switch() {
*
* @since 1.0.0
*/
function run_wdevs_tax_switch() {
function wdevs_tax_switch_run() {

$plugin = new Wdevs_Tax_Switch();
$plugin->run();

}

run_wdevs_tax_switch();
wdevs_tax_switch_run();

0 comments on commit b36f5f7

Please sign in to comment.