PluginProbe
Code Snippets / 3.4.1
Code Snippets v3.4.1
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / code-snippets.php

code-snippets.php in Code Snippets 3.4.1, at code-snippets.php

63 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Code Snippets
4 * Plugin URI: https://codesnippets.pro
5 * Description: An easy, clean and simple way to run code snippets on your site. No need to edit to your theme's functions.php file again!
6 * Author: Code Snippets Pro
7 * Author URI: https://codesnippets.pro
8 * License: GPL-2.0-or-later
9 * License URI: license.txt
10 * Text Domain: code-snippets
11 * Version: 3.4.1
12 * Requires PHP: 7.0
13 * Requires at least: 5.0
14 *
15 * @version 3.4.1
16 * @package Code_Snippets
17 * @author Shea Bunge <shea@codesnippets.pro>
18 * @copyright 2012-2023 Code Snippets Pro
19 * @license GPL-2.0-or-later https://spdx.org/licenses/GPL-2.0-or-later.html
20 * @link https://github.com/codesnippetspro/code-snippets
21 */
22
23 // Exit if accessed directly.
24 if ( ! defined( 'ABSPATH' ) ) {
25 return;
26 }
27
28 // Halt loading here if the plugin is already loaded, or we're running an incompatible version of PHP.
29 if ( ! defined( 'CODE_SNIPPETS_FILE' ) && version_compare( phpversion(), '7.0', '>=' ) ) {
30
31 /**
32 * The current plugin version.
33 *
34 * Should be set to the same value as set above.
35 *
36 * @const string
37 */
38 define( 'CODE_SNIPPETS_VERSION', '3.4.1' );
39
40 /**
41 * The full path to the main file of this plugin.
42 *
43 * This can later be passed to functions such as plugin_dir_path(), plugins_url() and plugin_basename()
44 * to retrieve information about plugin paths.
45 *
46 * @since 2.0.0
47 * @const string
48 */
49 define( 'CODE_SNIPPETS_FILE', __FILE__ );
50
51 /**
52 * Used to determine which version of Code Snippets is running.
53 *
54 * @since 3.0.0
55 * @onst boolean
56 */
57 define( 'CODE_SNIPPETS_PRO', true );
58
59 require_once dirname( __FILE__ ) . '/php/load.php';
60 } else {
61 require_once dirname( __FILE__ ) . '/php/deactivation-notice.php';
62 }
63