PluginProbe
Snippet Shortcodes / 4.2.3
Snippet Shortcodes v4.2.3
5.2.1 5.2 5.1.8 5.1.6 5.1.7 5.1.5 trunk 1.0 1.1 1.2 1.3 1.3.1 1.4 1.5 1.5.1 1.6 1.6.1 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.8 2.0 2.0.1 All 74 releases
← All changes | shortcode-variables.php +35 -30 5.24.2.3 View file →
@@ -3,13 +3,13 @@
3 3 defined('ABSPATH') or die("Jog on!");
4 4
5 5 /**
6 6 * Plugin Name: Snippet Shortcodes
7 - * Description: Create a library of custom shortcodes and reusable content, and seamlessly insert them into your posts and pages.
8 - * Version: 5.2
7 + * Description: Easily create custom shortcodes by assigning text or variables, or use our ready-made options. Embed them anywhere across your site—update the value once, and it updates everywhere.
8 + * Version: 4.2.3
9 9 * Requires at least: 6.0
10 - * Tested up to: 7.0.1
11 - * Requires PHP: 8.1
10 + * Tested up to: 6.8
11 + * Requires PHP: 7.4
12 12 * Author: Ali Colville
13 13 * Author URI: https://www.YeKen.uk
14 14 * License: GPL v2 or later
15 15 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -32,40 +32,45 @@
32 32 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
33 33 */
34 34
35 35 define( 'SH_CD_ABSPATH', plugin_dir_path( __FILE__ ) );
36 -define( 'SH_CD_PLUGIN_VERSION', '5.2' );
36 +
37 +define( 'SH_CD_PLUGIN_VERSION', '4.2.3' );
37 38 define( 'SH_CD_PLUGIN_NAME', 'Snippet Shortcodes' );
38 39 define( 'SH_CD_TABLE', 'SH_CD_SHORTCODES' );
39 40 define( 'SH_CD_TABLE_MULTISITE', 'SH_CD_SHORTCODES_MULTISITE' );
40 -define( 'SH_CD_TABLE_REVISIONS', 'SH_CD_SHORTCODES_REVISIONS' );
41 41 define( 'SH_CD_SLUG', 'sh-cd-shortcode-variables' );
42 42 define( 'SH_CD_PREFIX', 'sh-cd-' );
43 43 define( 'SH_CD_SHORTCODE', 'sv' );
44 +define( 'SH_CD_FREE_SHORTCODE_LIMIT', 10 );
45 +define( 'SH_CD_PREMIUM_PRICE', 4.99 );
44 46 define( 'SH_CD_UPGRADE_LINK', 'https://shop.yeken.uk/product/shortcode-variables/' );
45 -// Note: SH_CD_GET_PREMIUM_LINK is detected by the Premium plugin to determine if the main plugin is enabled.
46 -// Do not remove or rename the constant.
47 -define( 'SH_CD_GET_PREMIUM_LINK', 'https://snippetshortcodes.yeken.uk/download/' );
48 47 define( 'SH_CD_YEKEN_UPDATES_URL', 'https://yeken.uk/downloads/_updates/shortcode-variables.json' );
49 -define( 'SH_CD_YEKEN_PREMIUM_RELEASE_MANIFEST', 'https://snippetshortcodes.yeken.uk/wp-content/plugins/snippet-shortcodes-premium/release.json' );
50 48
51 -add_action( 'plugins_loaded', function() {
49 +// -----------------------------------------------------------------------------------------
50 +// AC: Include all relevant PHP files
51 +// -----------------------------------------------------------------------------------------
52 52
53 - include_once SH_CD_ABSPATH . 'includes/functions.php';
54 - include_once SH_CD_ABSPATH . 'includes/class.presets.php';
55 - include_once SH_CD_ABSPATH . 'includes/hooks.php';
56 - include_once SH_CD_ABSPATH . 'includes/db.php';
57 - include_once SH_CD_ABSPATH . 'includes/marketing.php';
58 - include_once SH_CD_ABSPATH . 'includes/shortcode.marketing.php';
59 - include_once SH_CD_ABSPATH . 'includes/shortcode.user.php';
60 - include_once SH_CD_ABSPATH . 'includes/shortcode.presets.core.php';
61 - include_once SH_CD_ABSPATH . 'includes/shortcode.presets.free.php';
62 - include_once SH_CD_ABSPATH . 'includes/pages/page.list.php';
63 - include_once SH_CD_ABSPATH . 'includes/pages/page.premade.php';
64 - include_once SH_CD_ABSPATH . 'includes/pages/page.edit.php';
65 - include_once SH_CD_ABSPATH . 'includes/pages/page.upgrade.php';
66 - include_once SH_CD_ABSPATH . 'includes/pages/page.settings.php';
67 - include_once SH_CD_ABSPATH . 'includes/pages/page.help.php';
68 - include_once SH_CD_ABSPATH . 'includes/pages/page.import.php';
69 - include_once SH_CD_ABSPATH . 'includes/tinymce.php';
70 - include_once SH_CD_ABSPATH . 'includes/gutenberg.php';
71 -});
53 +include_once SH_CD_ABSPATH . 'includes/class.presets.php';
54 +include_once SH_CD_ABSPATH . 'includes/hooks.php';
55 +include_once SH_CD_ABSPATH . 'includes/functions.php';
56 +include_once SH_CD_ABSPATH . 'includes/db.php';
57 +include_once SH_CD_ABSPATH . 'includes/cron.php';
58 +include_once SH_CD_ABSPATH . 'includes/license.php';
59 +include_once SH_CD_ABSPATH . 'includes/marketing.php';
60 +
61 +$sh_cd_is_premium = sh_cd_license_is_premium();
62 +
63 +define( 'SH_CD_IS_PREMIUM', $sh_cd_is_premium );
64 +
65 +include_once SH_CD_ABSPATH . 'includes/shortcode.user.php';
66 +include_once SH_CD_ABSPATH . 'includes/shortcode.presets.core.php';
67 +include_once SH_CD_ABSPATH . 'includes/shortcode.presets.free.php';
68 +include_once SH_CD_ABSPATH . 'includes/shortcode.presets.premium.php';
69 +include_once SH_CD_ABSPATH . 'includes/pages/page.list.php';
70 +include_once SH_CD_ABSPATH . 'includes/pages/page.premade.php';
71 +include_once SH_CD_ABSPATH . 'includes/pages/page.edit.php';
72 +include_once SH_CD_ABSPATH . 'includes/pages/page.settings.php';
73 +include_once SH_CD_ABSPATH . 'includes/pages/page.license.php';
74 +include_once SH_CD_ABSPATH . 'includes/pages/page.help.php';
75 +include_once SH_CD_ABSPATH . 'includes/pages/page.import.php';
76 +include_once SH_CD_ABSPATH . 'includes/tinymce.php';