1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Plugin Name: Social Warfare |
---|
5 | * Plugin URI: https://warfareplugins.com |
---|
6 | * Description: A plugin to maximize social shares and drive more traffic using the fastest and most intelligent share buttons on the market, calls to action via in-post click-to-tweets, popular posts widgets based on share popularity, link-shortening, Google Analytics and much, much more! |
---|
7 | * Version: 4.4.7.2 |
---|
8 | * Author: Warfare Plugins |
---|
9 | * Author URI: https://warfareplugins.com |
---|
10 | * Text Domain: social-warfare |
---|
11 | * |
---|
12 | */ |
---|
13 | defined( 'WPINC' ) || die; |
---|
14 | |
---|
15 | |
---|
16 | /** |
---|
17 | * We create these constants here so that we can use them throughout the plugin |
---|
18 | * for things like includes and requires. |
---|
19 | * |
---|
20 | * @since 4.2.0 | 19 NOV 2020 | The str_replace() removes any linebreaks in the string. |
---|
21 | * |
---|
22 | */ |
---|
23 | define( 'SWP_VERSION', '4.4.7.2' ); |
---|
24 | define( 'SWP_DEV_VERSION', '2024.06.23 MASTER' ); |
---|
25 | define( 'SWP_PLUGIN_FILE', __FILE__ ); |
---|
26 | define( 'SWP_PLUGIN_URL', str_replace( array( "\r", "\n" ), '', untrailingslashit( plugin_dir_url( __FILE__ ) ) ) ); |
---|
27 | define( 'SWP_PLUGIN_DIR', __DIR__ ); |
---|
28 | define( 'SWP_STORE_URL', 'https://warfareplugins.com' ); |
---|
29 | |
---|
30 | |
---|
31 | /** |
---|
32 | * This will allow shortcodes to be processed in the excerpts. Ours is set up |
---|
33 | * to essentially remove the [shortcode] from being visible in the excerpts so |
---|
34 | * that they don't show up as plain text. |
---|
35 | * |
---|
36 | * @todo This needs to be moved into the Social_Warfare class. |
---|
37 | * |
---|
38 | */ |
---|
39 | add_filter( 'the_excerpt', 'do_shortcode', 1 ); |
---|
40 | |
---|
41 | /** |
---|
42 | * Social Warfare is entirely a class-based, object oriented system. As such, the |
---|
43 | * main function of this file (the main plugin file loaded by WordPress) is to |
---|
44 | * simply load the main Social_Warfare class and then instantiate it. This will, |
---|
45 | * in turn, fire up all the functionality of the plugin. |
---|
46 | * |
---|
47 | */ |
---|
48 | require_once SWP_PLUGIN_DIR . '/lib/Social_Warfare.php'; |
---|
49 | new Social_Warfare(); |
---|