PHP, HTML, Javascript snippets
Save ad code, analytics, video embeds, or any HTML and JavaScript as a shortcode. PHP snippets run the same way, including HTML mixed with PHP, so the code stays out of your theme.
XYZ WP Insert Code Snippet adds HTML, JavaScript, and PHP to WordPress without editing theme files. Create a snippet once, then place it with a shortcode, insert it automatically, or run PHP only when you trigger it. Target who sees it, pass values into the code, and decide which users can manage or use each snippet.
Save ad code, analytics, video embeds, or any HTML and JavaScript as a shortcode. PHP snippets run the same way, including HTML mixed with PHP, so the code stays out of your theme.
Insert a shortcode in posts, pages, and widgets, or pick it from the editor. Automatic placement covers the site, wp-admin, header, footer, content, paragraphs, and archive loops. Execute on Demand runs a snippet only when you trigger it.
Show a snippet to logged-in visitors, logged-out visitors, or selected roles. Limit it to phones and tablets, desktops, or chosen countries. Leave countries empty to run it worldwide.
Set a start and end date, choose weekdays, and limit a snippet to hours of the day. Sleep settings pause it on a repeating interval so it does not run the whole time it is active.
Pass values from the shortcode into the snippet and store defaults for values that are left out. Edit with syntax highlighting, duplicate a snippet, turn it on or off, and export or import it to another site.
Choose which roles and users can manage snippets, and which can use them. A master password protects sensitive actions for the super admin.
Make sure your hosting environment meets these technical requirements before installation.
Linux or Windows
Apache or IIS
PHP 7.3
MySQL (5.x or higher versions)