PluginProbe
WP Counter Up – Animated Number Counter & Milestone Showcase / trunk
WP Counter Up – Animated Number Counter & Milestone Showcase vtrunk
4.2.0 trunk 1.2.0 1.4.0 2.0.1 2.3.0 2.4.0 4.0.0
wp-counter-up / wp-counter-up.php

wp-counter-up.php in WP Counter Up – Animated Number Counter & Milestone Showcase trunk, at wp-counter-up.php

94 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 *
5 * @link http://logichunt.com
6 * @since 1.0.0
7 * @package Wp_Counter_Up
8 *
9 * @wordpress-plugin
10 * Plugin Name: WP Counter Up
11 * Plugin URI: http://logichunt.com/product/wordpress-counter-up
12 * Description: Add smooth and responsive animated counters to your WordPress site to highlight stats and milestones using simple shortcodes or widgets.
13 * Version: 4.2.0
14 * Author: LogicHunt Inc.
15 * Author URI: http://logichunt.com
16 * License: GPL-2.0+
17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
18 * Text Domain: wp-counter-up
19 * Domain Path: /languages
20 */
21
22 // If this file is called directly, abort.
23 if ( ! defined( 'WPINC' ) ) {
24 die;
25 }
26
27 /**
28 * Currently plugin version.
29 * Start at version 1.0.0 and use SemVer - https://semver.org
30 * Rename this for your plugin and update it as you release new versions.
31 */
32 define( 'WP_COUNTER_UP', '4.2.0' );
33
34 //plugin definition specific constants
35 defined( 'LGX_WCU_PLUGIN_VERSION' ) or define( 'LGX_WCU_PLUGIN_VERSION', '4.2.0' );
36 defined( 'LGX_WCU_WP_PLUGIN' ) or define( 'LGX_WCU_WP_PLUGIN', 'wp-counter-up' );
37 defined( 'LGX_WCU_PLUGIN_BASE' ) or define( 'LGX_WCU_PLUGIN_BASE', plugin_basename( __FILE__ ) );
38 defined( 'LGX_WCU_PLUGIN_ROOT_PATH' ) or define( 'LGX_WCU_PLUGIN_ROOT_PATH', plugin_dir_path( __FILE__ ) );
39 defined( 'LGX_WCU_PLUGIN_ROOT_URL' ) or define( 'LGX_WCU_PLUGIN_ROOT_URL', plugin_dir_url( __FILE__ ) );
40 defined( 'LGX_WCU_PLUGIN_TEXT_DOMAIN') or define( 'LGX_WCU_PLUGIN_TEXT_DOMAIN', 'wp-counter-up');
41
42
43 if( (LGX_WCU_PLUGIN_BASE == 'wp-counter-up-pro/wp-counter-up-pro.php') ) {
44 defined( 'LGX_WCU_PLUGIN_META_FIELD_PRO') or define( 'LGX_WCU_PLUGIN_META_FIELD_PRO', 'enabled');
45 } else {
46 defined( 'LGX_WCU_PLUGIN_META_FIELD_PRO') or define( 'LGX_WCU_PLUGIN_META_FIELD_PRO', 'disabled');
47 }
48
49
50
51 /**
52 * The code that runs during plugin activation.
53 * This action is documented in includes/class-wp-counter-up-activator.php
54 */
55 function activate_wp_counter_up() {
56 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wp-counter-up-activator.php';
57 Wp_Counter_Up_Activator::activate();
58 }
59
60 /**
61 * The code that runs during plugin deactivation.
62 * This action is documented in includes/class-wp-counter-up-deactivator.php
63 */
64 function deactivate_wp_counter_up() {
65 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wp-counter-up-deactivator.php';
66 Wp_Counter_Up_Deactivator::deactivate();
67 }
68
69 register_activation_hook( __FILE__, 'activate_wp_counter_up' );
70 register_deactivation_hook( __FILE__, 'deactivate_wp_counter_up' );
71
72 /**
73 * The core plugin class that is used to define internationalization,
74 * admin-specific hooks, and public-facing site hooks.
75 */
76 require plugin_dir_path( __FILE__ ) . 'includes/class-wp-counter-up.php';
77
78 /**
79 * Begins execution of the plugin.
80 *
81 * Since everything within the plugin is registered via hooks,
82 * then kicking off the plugin from this point in the file does
83 * not affect the page life cycle.
84 *
85 * @since 1.0.0
86 */
87 function run_wp_counter_up() {
88
89 $plugin = new Wp_Counter_Up();
90 $plugin->run();
91
92 }
93 run_wp_counter_up();
94