FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-snippets/src/code-snippets.php at core-beta · codesnippetspro/code-snippets · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
codesnippetspro
/
code-snippets
Public
Notifications
You must be signed in to change notification settings
Fork
112
Star
355
Code
Issues
26
Pull requests
4
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
code-snippets
/
src
/
code-snippets.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
64 lines (58 loc) · 1.82 KB
Breadcrumbs
code-snippets
/
src
/
code-snippets.php
Copy path
File metadata and controls
64 lines (58 loc) · 1.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Plugin Name: Code Snippets
* Plugin URI: https://codesnippets.pro
* Description: An easy, clean, and simple way to run code snippets on your site. No need to edit your theme's functions.php file again!
* Author: Code Snippets Pro
* Author URI: https://codesnippets.pro
* License: GPL-2.0-or-later
* License URI: license.txt
* Text Domain: code-snippets
* Version: 3.10.0-beta.2
* Requires PHP: 7.4
* Requires at least: 5.5
*
* @version 3.10.0-beta.2
* @package Code_Snippets
* @author Shea Bunge <shea@codesnippets.pro>
* @copyright 2012-2026 Code Snippets Pro
* @license GPL-2.0-or-later https://spdx.org/licenses/GPL-2.0-or-later.html
* @link https://github.com/codesnippetspro/code-snippets
*
* phpcs:disable Modernize.FunctionCalls.Dirname.FileConstant
*/
// Exit if accessed directly.
if
( !
defined
(
'
ABSPATH
'
) ) {
return
;
}
// Halt loading here if the plugin is already loaded, or we're running an incompatible version of PHP.
if
( !
defined
(
'
CODE_SNIPPETS_FILE
'
) &&
version_compare
(
phpversion
(),
'
7.4
'
,
'
>=
'
) ) {
/**
* The current plugin version.
*
* Should be set to the same value as set above.
*
* @const string
*/
define
(
'
CODE_SNIPPETS_VERSION
'
,
'
3.10.0-beta.2
'
);
/**
* The full path to the main file of this plugin.
*
* This can later be passed to functions such as plugin_dir_path(), plugins_url() and plugin_basename()
* to retrieve information about plugin paths.
*
* @since 2.0.0
* @const string
*/
define
(
'
CODE_SNIPPETS_FILE
'
,
__FILE__
);
/**
* Used to determine which version of Code Snippets is running.
*
* @since 3.0.0
* @const bool
*/
define
(
'
CODE_SNIPPETS_PRO
'
,
false
);
require_once
dirname
(
__FILE__
) .
'
/php/Core/load.php
'
;
}
else
{
require_once
dirname
(
__FILE__
) .
'
/php/Core/deactivation-notice.php
'
;
}
Back
|
FazBrowse Home
|
New Git URL