WP Smart Content
Easily inject HTML, CSS, JS, styles, scripts & tracking code via hooks / shortcodes with safe mode, scheduling, revisioning & geotargeting. ⏱ Schedule when you want Define start and end dates so snippets appear only when needed — ideal for campaigns, seasonal banners, or compliance notices. 📍 Publi
About this tool.
Easily inject HTML, CSS, JS, styles, scripts & tracking code via hooks / shortcodes with safe mode, scheduling, revisioning & geotargeting.
⏱ 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.