Easily inject HTML, CSS, JS, styles, scripts & tracking code via hooks / shortcodes with safe mode, scheduling, revisioning & geotargeting.
https://www.youtube.com/watch?v=EGcpAotBoZU
https://www.youtube.com/watch?v=JQlmAbAFeyU
⏱ Schedule when you want
Define start and end dates so snippets appear only when needed — ideal for campaigns, seasonal banners, or compliance notices.
📍 Publish where you want
Inject HTML, JavaScript, or CSS styles into any WordPress hook — Classic or Block Hook — without editing templates. Embed blocks directly inside posts, pages, or widgets using shortcodes.
🌍 Filter where you want
Control visibility across WordPress sections: all, frontend, posts, pages, backend (Admin), authentication, and system pages. Apply filters to selected posts or pages for complete flexibility.
🌐 Target who you want
Use geotargeting to display blocks only to visitors from selected countries. Configure rules to include or exclude specific regions.
🔒 Manage safely by whom you want
Administrators can use Raw Mode (unfiltered output) or Safe Mode (sanitized injection). Non-admins can be granted limited Safe Mode access via the
wpsc_admin capability, making delegation secure.
🗂 Revision when you want
Retrieve, compare, and restore block editor content with full revision management. Delete outdated revisions safely to keep the database clean and audit-friendly.
🖊️ Edit how you want
Includes a built-in editor with dedicated sections for HTML, CSS, and JavaScript, plus Preview and Error panels. Syntax highlighting improves readability, while instant error feedback ensures safe workflows.
✅ Why WP Smart Content?
By combining scheduling, hook targeting, filtering, geotargeting, role-based permissions, revisioning, and a syntax-highlighted editor, WP Smart Content ensures snippets are placed exactly where and when you want them — managed safely by the right people. It’s a compliance-ready, SEO-friendly solution that keeps your WordPress site secure, scalable, and easy to maintain. Supports Classic & Block Hooks, grouped dropdowns, translation readiness, and a reviewer-friendly modular codebase with clear documentation.
✨ Key Features
- Classic Hooks: Inject content into wp_head, wp_footer, styles, scripts, meta, and footer scripts.
- Block Hooks (WP 6.8+): Add content anywhere via the block editor UI.
- Grouped dropdowns: Organized separation of Classic and Block Hooks in admin.
- Translation ready: Updated .pot file for localization.
- Reviewer-friendly: Modular code, clear docs, and WordPress coding standards compliance.
💡 Use Cases
- Add a script to the <head> section without editing theme files.
- Insert HTML into the <footer> for custom notices or widgets.
- Push CSS before WordPress outputs styles for precise control.
- Inject a notice after post content using Block Hooks.
- Manage analytics or marketing tags centrally, without touching templates.
- Schedule snippets to run only during campaigns or seasonal events.
- Delegate Safe Mode CSS editing to a designer or contributor without exposing Raw Mode or sensitive site access.
- Display region-specific banners or compliance notices using geotargeting (include/exclude selected countries).
- Control visibility across frontend, posts, pages, admin, authentication, or system pages with scope targeting.
🔗 Few Supported Hooks
Classic Hooks
- wp_head – Injects content into the '<head>' section before closing tag
- wp_footer – Injects content into the '<body>' section before closing tag
- wp_print_styles – Injects content before WordPress outputs enqueued styles
- wp_print_scripts – Injects content before WordPress outputs enqueued scripts
- wp_meta – Injects content into the meta section of the sidebar
- wp_print_footer_scripts – Injects content before WordPress outputs footer scripts
Block Hooks (WordPress 6.8+)
- after_post_content – Injects content immediately after the post content block
- before_post_content – Injects content immediately before the post content block
- after_comments – Injects content after the comments block
- before_comments – Injects content before the comments block
- after_entry_title – Injects content after the entry/post title block
- before_entry_title – Injects content before the entry/post title block
Optional Context Hooks
- admin_head – Injects content into the '<head>' section of admin pages
- admin_footer – Injects content into the '<footer>' section of admin pages
- login_head – Injects content into the '<head>' section of the login page
- login_footer – Injects content into the '<footer>' section of the login page
- enqueue_block_assets – Injects content when block editor assets are loaded