Skip to content
Select theme
Get Started

Code Snippet

Summarize with AI

Code Snippet Managed snippets for head, body, footer, or shortcodes-HTML, CSS, JS, and PHP.

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.

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.

Code Snippet has a dedicated admin page under WP PowerSuite. Enable the module, then open that page to configure it.

  1. Go to WP PowerSuite -> Modules.
  2. Open Site Tools or search for “Code Snippet”.
  3. Toggle Code Snippet on.
  4. Open the module settings / admin page and save.

Toggle it off anytime to stop this module from loading.

  • 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.
  • 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.

Prefer the command line? You can turn this module on or off with WP-CLI instead of the dashboard:

Terminal window
# Turn the module on
wp powersuite module enable code-snippet
# Turn the module off
wp powersuite module disable code-snippet
# Check whether it is on, its category, and where its settings live
wp powersuite module get code-snippet

Managing 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].