Plugin Directory

source: social-warfare/tags/4.4.7.2/social-warfare.php @ 3106250

Last change on this file since 3106250 was 3106250, checked in by frantorres, 5 weeks ago

Changes reverted

File size: 1.8 KB
Line 
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 */
13defined( '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 */
23define( 'SWP_VERSION', '4.4.7.2' );
24define( 'SWP_DEV_VERSION', '2024.06.23 MASTER' );
25define( 'SWP_PLUGIN_FILE', __FILE__ );
26define( 'SWP_PLUGIN_URL', str_replace( array( "\r", "\n" ), '', untrailingslashit( plugin_dir_url( __FILE__ ) ) ) );
27define( 'SWP_PLUGIN_DIR', __DIR__ );
28define( '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 */
39add_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 */
48require_once SWP_PLUGIN_DIR . '/lib/Social_Warfare.php';
49new Social_Warfare();
Note: See TracBrowser for help on using the repository browser.