Code Snippet Managed snippets for head, body, footer, or shortcodes-HTML, CSS, JS, and PHP.
What it does
Section titled “What it does”Managed snippets for head, body, footer, or shortcodes-HTML, CSS, JS, and PHP.
- Shortcode:
[wpps_code]. - Modifies the admin menu or toolbar.
- Managed from a dedicated admin page under WP PowerSuite.
- Loaded on this page.
-
- Add Snippet.
- No snippets loaded.
- Code Snippets.
When to use it
Section titled “When to use it”Enable it if:
- You specifically need: Managed snippets for head, body, footer, or shortcodes-HTML, CSS, JS, and PHP.
- You want this Site Tools feature without installing a separate plugin for it.
When not to use it
Section titled “When not to use it”Settings
Section titled “Settings”Code Snippet has a dedicated admin page under WP PowerSuite. Enable the module, then open that page to configure it.
How to enable it
Section titled “How to enable it”- Go to WP PowerSuite -> Modules.
- Open Site Tools or search for “Code Snippet”.
- Toggle Code Snippet on.
- Open the module settings / admin page and save.
Toggle it off anytime to stop this module from loading.
How to test it
Section titled “How to test it”- Confirm Code Snippet is enabled under WP PowerSuite -> Modules -> Site Tools.
- Place
[wpps_code]on a page and verify the output. - ✅ Pass: you see the module-specific behavior described above.
- ❌ Fail: re-check this module’s settings, then look for another plugin doing the same job.
Troubleshooting
Section titled “Troubleshooting”- No change after enabling. Confirm the toggle is on, hard-refresh, and review this module’s settings.
- Access denied during a Temporary Login. Expected - vendor sessions cannot add or edit snippets that keep running after the link expires.
- Conflicts. Temporarily disable other plugins that implement the same feature.
- Unexpected side effect. Toggle Code Snippet off to revert, then re-enable with adjusted settings.
Manage with WP-CLI
Section titled “Manage with WP-CLI”Prefer the command line? You can turn this module on or off with WP-CLI instead of the dashboard:
# Turn the module onwp powersuite module enable code-snippet
# Turn the module offwp powersuite module disable code-snippet
# Check whether it is on, its category, and where its settings livewp powersuite module get code-snippetManaging more than one site? Add --url=https://example.com to point a command at one site. If this is a Pro module, install WP PowerSuite Pro and activate your license first. New to WP-CLI? See the full command guide.
What does Code Snippet do?
Managed snippets for head, body, footer, or shortcodes-HTML, CSS, JS, and PHP.
Is Code Snippet free?
Yes. Enable it under WP PowerSuite -> Modules.
Where do I manage Code Snippet?
After enabling it, open its dedicated page under WP PowerSuite.
What shortcode does Code Snippet use?
[wpps_code]
Developer notes (hooks & filters)
Source: modules/code-snippet/admin-bar.php, modules/code-snippet/admin.php, modules/code-snippet/class-code-snippet-list-table.php, modules/code-snippet/class-snippet-threat-scanner.php, modules/code-snippet/class-wpps-revisions-display.php, modules/code-snippet/class-wpps-revisions.php, modules/code-snippet/edit.php, modules/code-snippet/module.php.
Boot: standard · context: admin, frontend, ajax.
Hooks (non-exhaustive): admin_bar_menu, wpps_code_snippet_output, wpps_snippet_loaded, plugins_loaded, wp_footer, admin_footer, admin_init, init, save_post_, updated_post_meta, added_post_meta, deleted_post_meta, wp_trash_post, untrash_post, before_delete_post, admin_notices.
Shortcodes: [wpps_code].