WP Clips contains a core Clip folder and a custom Clip folder. The core Clip includes a core-functions file (PHP) which is used for adding WordPress core functions, while the custom Clip includes style (CSS), script (JS) and functions (PHP) files for adding and editing content-related custom code (i.e. for customizing themes and plugins).
Code is added directly to files within the Clip folders –
/wp-clips/clip_core/core-functions.php – WordPress core functions
/wp-clips/clip_custom/custom-functions.php – content-related custom functions
/wp-clips/clip_custom/custom-jquery.js – content-related custom scripts
/wp-clips/clip_custom/custom-style.css – content-related custom styles
The files can be edited with your preferred code editor, either locally, via FTP (or file manager), or from within the WordPress plugin editor. Shortcuts to both core and custom Clips are provided under the admin Plugins menu.
You can also add folders, included/enqueued files and other content to each Clip. There’s really no limit to what you include or how you use it.
Declaring compatible themes and required plugins
You can declare compatible themes and required plugins which dictate whether the custom Clip should or should not be enabled. Open the /clip_custom/vitals.php file. Add compatible themes to the $themes array using the folder name (e.g theme-folder-name). Add required plugins to the $plugins array using the the plugin’s folder and filename (e.g. plugin-folder-name/plugin-filename.php). Array values must be comma-separated.
If you need to customize native files
Customizing a theme or plugin’s native files is sometimes easier and preferred. A log.txt file is included within the custom Clip to record any such changes.
Power up the ‘Plugins Editor’
Using the WordPress Plugins Editor can be somewhat risky without syntax highlighting and error prompts. We recommend installing the WP Ace Edit Precoded Clip from ClipBank™ or WP Lab’s Ace Edit plugin for syntax highlighting and other features.