at path:
ROOT
/
wp-content
/
plugins
/
code-snippets
/
php
/
load.php
run:
R
W
Run
admin-menus
DIR
2026-06-16 01:07:15
R
W
Run
cloud
DIR
2026-06-16 01:07:15
R
W
Run
export
DIR
2026-06-16 01:07:15
R
W
Run
front-end
DIR
2026-06-16 01:07:15
R
W
Run
rest-api
DIR
2026-06-16 01:07:15
R
W
Run
settings
DIR
2026-06-16 01:07:15
R
W
Run
views
DIR
2026-06-16 01:07:15
R
W
Run
class-active-snippets.php
1.85 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-admin.php
10.59 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-contextual-help.php
6.24 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-data-item.php
6.23 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-db.php
7.69 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-licensing.php
314 By
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-list-table.php
37.68 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-plugin.php
9.77 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-snippet.php
13.07 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-upgrade.php
6.55 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-validator.php
7.02 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
class-welcome-api.php
9.53 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
deactivation-notice.php
1.94 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
editor.php
3.2 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
load.php
1.43 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
snippet-ops.php
20.98 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
strings.php
1.8 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
uninstall.php
2.08 KB
2026-06-16 01:07:15
R
W
Run
Delete
Rename
error_log
up
📄
load.php
Save
<?php /** * Initialise and load the plugin under the proper namespace. * * @package Code_Snippets */ namespace Code_Snippets; /** * The version number for this release of the plugin. * This will later be used for upgrades and enqueuing files. * * This should be set to the 'Plugin Version' value defined * in the plugin header. * * @var string A PHP-standardized version number string. */ const PLUGIN_VERSION = CODE_SNIPPETS_VERSION; /** * The full path to the main file of this plugin. * * This can later be used with functions such as * plugin_dir_path(), plugins_url() and plugin_basename() * to retrieve information about plugin paths. * * @var string */ const PLUGIN_FILE = CODE_SNIPPETS_FILE; /** * Name of the group used for caching data. * * @var string */ const CACHE_GROUP = 'code_snippets'; /** * Namespace used for REST API endpoints. * * @var string */ const REST_API_NAMESPACE = 'code-snippets/v'; // Load dependencies with Composer. require_once dirname( __DIR__ ) . '/vendor/autoload.php'; /** * Retrieve the instance of the main plugin class. * * @return Plugin * @since 2.6.0 */ function code_snippets(): Plugin { static $plugin; if ( is_null( $plugin ) ) { $plugin = new Plugin( PLUGIN_VERSION, PLUGIN_FILE ); } return $plugin; } code_snippets()->load_plugin(); // Execute the snippets once the plugins are loaded. add_action( 'plugins_loaded', __NAMESPACE__ . '\execute_active_snippets', 1 );