Skip to content

Commit

Permalink
Fixed issue of free and pro being activated
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Sep 10, 2024
1 parent 746b9b3 commit 6f8df84
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions top-10.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,28 +91,17 @@
// Load the autoloader.
require_once TOP_TEN_PLUGIN_DIR . 'includes/autoloader.php';


/**
* The code that runs during plugin activation.
*
* @since 3.3.2
*
* @param bool $network_wide Whether the plugin is being activated network-wide.
*/
function activate_tptn( $network_wide ) {
Admin\Activator::activation_hook( $network_wide );
}
register_activation_hook( __FILE__, __NAMESPACE__ . '\activate_tptn' );

/**
* The main function responsible for returning the one true WebberZone Snippetz instance to functions everywhere.
*
* @since 3.3.0
*/
function load_tptn() {
Main::get_instance();
if ( ! function_exists( __NAMESPACE__ . '\load_tptn' ) ) {
/**
* The main function responsible for returning the one true WebberZone Snippetz instance to functions everywhere.
*
* @since 3.3.0
*/
function load_tptn() {
Main::get_instance();
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_tptn' );
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_tptn' );

/*
*----------------------------------------------------------------------------
Expand Down

0 comments on commit 6f8df84

Please sign in to comment.