diff --git a/wpt-tx-updater.php b/wpt-tx-updater.php index 4741d0e..2917ea0 100755 --- a/wpt-tx-updater.php +++ b/wpt-tx-updater.php @@ -1,25 +1,25 @@ - WPTXU_VERSION, - 'license' => $license_key, - 'item_name' => WPTXU_SLUG, - 'author' => 'WP-Translations Team', - ) - ); + $edd_updater = new WPTXU_Plugin_Updater( WPTXU_STORE_URL, __FILE__, array( + 'version' => WPTXU_VERSION, + 'license' => $license_key, + 'item_name' => WPTXU_SLUG, + 'author' => 'WP-Translations Team', + ) + ); } -add_action( 'admin_init', 'wptxu_updater', 0 ); + add_action( 'admin_init', 'wptxu_updater', 0 ); -/** - * Load plugin textdomain - * - * @since 1.0.0 - */ + /** + * Load plugin textdomain + * + * @since 1.0.0 + */ function wptxu_load_textdomain() { if ( is_dir( WPTXU_CONTENT_PATH ) ) { @@ -131,27 +131,27 @@ function wptxu_load_textdomain() { } } -add_action( 'plugins_loaded', 'wptxu_load_textdomain', 0 ); + add_action( 'plugins_loaded', 'wptxu_load_textdomain', 0 ); -/* - * Tell WP what to do when plugin is activated - * - * @since 1.0.0 - */ + /** + * Tell WP what to do when plugin is activated + * + * @since 1.0.0 + */ function wptxu_activation() { require( WPTXU_ADMIN_PATH . 'custom-post-type.php' ); flush_rewrite_rules(); } -register_activation_hook( __FILE__, 'wptxu_activation' ); + register_activation_hook( __FILE__, 'wptxu_activation' ); -/* - * Tell WP what to do when plugin is deactivated - * - * @since 1.0.0 - */ + /** + * Tell WP what to do when plugin is deactivated + * + * @since 1.0.0 + */ function wptxu_deactivate() { flush_rewrite_rules(); } -register_deactivation_hook( __FILE__, 'wptxu_deactivate' ); + register_deactivation_hook( __FILE__, 'wptxu_deactivate' );