{"id":25224,"date":"2013-09-16T09:12:31","date_gmt":"2013-09-16T09:12:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/insert-php-code-snippet\/"},"modified":"2026-03-16T11:15:34","modified_gmt":"2026-03-16T11:15:34","slug":"insert-php-code-snippet","status":"publish","type":"plugin","link":"https:\/\/nb.wordpress.org\/plugins\/insert-php-code-snippet\/","author":9008750,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.5","stable_tag":"1.4.5","tested":"6.9.4","requires":"","requires_php":"","requires_plugins":null,"header_name":"Insert PHP Code Snippet","header_author":"xyzscripts.com","header_description":"","assets_banners_color":"3abace","last_updated":"2026-03-16 11:15:34","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/xyzscripts.com\/donate\/","header_plugin_uri":"http:\/\/xyzscripts.com\/wordpress-plugins\/insert-php-code-snippet\/","header_author_uri":"http:\/\/xyzscripts.com\/","rating":4.9,"author_block_rating":0,"active_installs":100000,"downloads":1573443,"num_ratings":698,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"f1logic","date":"2013-09-16 09:12:31"},"1.1":{"tag":"1.1","author":"f1logic","date":"2014-10-08 17:39:03"},"1.2":{"tag":"1.2","author":"f1logic","date":"2015-08-25 06:39:35"},"1.2.1":{"tag":"1.2.1","author":"f1logic","date":"2017-02-08 10:10:20"},"1.2.2":{"tag":"1.2.2","author":"f1logic","date":"2018-01-10 14:35:41"},"1.2.3":{"tag":"1.2.3","author":"f1logic","date":"2018-02-02 08:24:04"},"1.2.4":{"tag":"1.2.4","author":"f1logic","date":"2018-04-10 10:25:03"},"1.2.5":{"tag":"1.2.5","author":"f1logic","date":"2018-06-27 09:53:28"},"1.2.6":{"tag":"1.2.6","author":"f1logic","date":"2018-09-18 07:12:50"},"1.3":{"tag":"1.3","author":"f1logic","date":"2019-08-20 00:32:52"},"1.3.1":{"tag":"1.3.1","author":"f1logic","date":"2020-09-02 16:11:16"},"1.3.2":{"tag":"1.3.2","author":"f1logic","date":"2021-04-23 07:08:58"},"1.3.3":{"tag":"1.3.3","author":"f1logic","date":"2022-03-17 12:56:36"},"1.3.4":{"tag":"1.3.4","author":"f1logic","date":"2023-10-26 12:22:42"},"1.3.5":{"tag":"1.3.5","author":"f1logic","date":"2024-02-09 07:30:40"},"1.3.6":{"tag":"1.3.6","author":"f1logic","date":"2024-07-08 13:07:50"},"1.3.7":{"tag":"1.3.7","author":"f1logic","date":"2024-08-13 09:21:32"},"1.3.8":{"tag":"1.3.8","author":"f1logic","date":"2024-12-05 05:21:17"},"1.4":{"tag":"1.4","author":"f1logic","date":"2025-02-18 11:26:55"},"1.4.1":{"tag":"1.4.1","author":"f1logic","date":"2025-02-19 13:19:23"},"1.4.2":{"tag":"1.4.2","author":"f1logic","date":"2025-04-23 08:18:36"},"1.4.3":{"tag":"1.4.3","author":"f1logic","date":"2025-07-08 07:37:32"},"1.4.4":{"tag":"1.4.4","author":"f1logic","date":"2025-10-23 07:14:31"},"1.4.5":{"tag":"1.4.5","author":"f1logic","date":"2026-03-16 11:15:34"}},"upgrade_notice":[],"ratings":{"1":16,"2":2,"3":1,"4":10,"5":669},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1800967,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1800967,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.3","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.4","1.4.1","1.4.2","1.4.3","1.4.4","1.4.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3243257,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3483761,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3243257,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"This is the shortcode generator page","2":"This is page where you can manage all your snippets","3":"The shortcodes are easily accessible in the content editor"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3496,36717,36722,36724,36723],"plugin_category":[],"plugin_contributors":[78607],"plugin_business_model":[],"class_list":["post-25224","plugin","type-plugin","status-publish","hentry","plugin_tags-add-php","plugin_tags-insert-php","plugin_tags-insert-php-code","plugin_tags-insert-php-snippet","plugin_tags-insert-php-tag","plugin_contributors-f1logic","plugin_committers-f1logic"],"banners":{"banner":"https:\/\/ps.w.org\/insert-php-code-snippet\/assets\/banner-772x250.jpg?rev=1800967","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/insert-php-code-snippet\/assets\/icon-128x128.png?rev=1800967","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/insert-php-code-snippet\/assets\/screenshot-1.png?rev=3243257","caption":"This is the shortcode generator page"},{"src":"https:\/\/ps.w.org\/insert-php-code-snippet\/assets\/screenshot-2.png?rev=3483761","caption":"This is page where you can manage all your snippets"},{"src":"https:\/\/ps.w.org\/insert-php-code-snippet\/assets\/screenshot-3.png?rev=3243257","caption":"The shortcodes are easily accessible in the content editor"}],"raw_content":"<!--section=description-->\n<p>A quicklook into Insert PHP Code Snippet<\/p>\n\n<pre><code>\u2605 Convert PHP snippets to shortcodes\n\u2605 Insert PHP code easily using shortcode\n\u2605 Support for PHP snippet shortcodes in widgets\n\u2605 Dropdown menu in TinyMCE editor to pick snippet shortcodes easily\n<\/code><\/pre>\n\n<h4>Features in Detail<\/h4>\n\n<p>Insert PHP Code Snippet allows you to create shortcodes corresponding to PHP code snippets. You can create a shortcode corresponding to any random PHP code such as ad codes, login validation etc. and use the same in your posts, pages or widgets.<\/p>\n\n<p>The shortcodes generated using the plugin are easily available as a dropdown in the standard wordpress content editor as well as in widget settings, thereby giving you ease of integrating your PHP snippets with your posts and pages.<\/p>\n\n<h4>About<\/h4>\n\n<p>Insert PHP Code Snippet is developed and maintained by <a href=\"http:\/\/xyzscripts.com\/\" title=\"xyzscripts.com\">XYZScripts<\/a>. For any support, you may <a href=\"http:\/\/xyzscripts.com\/support\/\" title=\"XYZScripts Support\">contact us<\/a>.<\/p>\n\n<p>\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/user-guide\">Insert PHP Code Snippet User Guide<\/a>\n\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/faq\/\">Insert PHP Code Snippet FAQ<\/a><\/p>\n\n<h3>More Information<\/h3>\n\n<p>\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/user-guide\">Insert PHP Code Snippet User Guide<\/a>\n\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/faq\/\">Insert PHP Code Snippet FAQ<\/a><\/p>\n\n<h4>Troubleshooting<\/h4>\n\n<p>Please read the FAQ first if you are having problems.<\/p>\n\n<h4>Requirements<\/h4>\n\n<pre><code>WordPress 5.0+\nPHP 7+\n<\/code><\/pre>\n\n<h4>Feedback<\/h4>\n\n<p>We would like to receive your feedback and suggestions. You may submit them at our <a href=\"http:\/\/xyzscripts.com\/members\/support\/\" title=\"XYZScripts Support\">support desk<\/a>.<\/p>\n\n<!--section=installation-->\n<p>\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/user-guide\">Insert PHP Code Snippet User Guide<\/a>\n\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/faq\/\">Insert PHP Code Snippet FAQ<\/a><\/p>\n\n<ol>\n<li>Extract <code>insert-php-code-snippet.zip<\/code> to your <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>In the admin panel under plugins activate Insert PHP Code Snippet.<\/li>\n<\/ol>\n\n<p>If you need any further help, you may contact our <a href=\"http:\/\/xyzscripts.com\/support\/\" title=\"XYZScripts Support\">support desk<\/a>.<\/p>\n\n<!--section=faq-->\n<p>\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/user-guide\">Insert PHP Code Snippet User Guide<\/a>\n\u2605 <a href=\"http:\/\/help.xyzscripts.com\/docs\/insert-php-code-snippet\/faq\/\">Insert PHP Code Snippet FAQ<\/a><\/p>\n<dl>\n<dt id=\"1.%20the%20insert%20php%20code%20snippet%20is%20not%20working%20properly.\"><h3>1. The Insert PHP Code Snippet is not working properly.<\/h3><\/dt>\n<dd><p>Please check the wordpress version you are using. Make sure it meets the minimum version recommended by us. Make sure all files of the <code>insert php code snippet<\/code> plugin uploaded to the folder <code>wp-content\/plugins\/<\/code><\/p><\/dd>\n<dt id=\"2.%20i%20have%202%20php%20shortcodes%20placed%20adjacently%2C%20but%20only%20one%20of%20them%20works.\"><h3>2. I have 2 PHP shortcodes placed adjacently, but only one of them works.<\/h3><\/dt>\n<dd><p>Please use a whitespace to separate 2 shortcodes.<\/p>\n\n<p>More questions ? <a href=\"http:\/\/xyzscripts.com\/members\/support\/\" title=\"XYZScripts Support\">Drop a mail<\/a> and we shall get back to you with the answers.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4.5<\/h4>\n\n<ul>\n<li>Improved snippet list UI and placement clarity<\/li>\n<li>Added usage details for snippets used via shortcode<\/li>\n<li>Minor bug fixes<\/li>\n<\/ul>\n\n<h4>1.4.4<\/h4>\n\n<ul>\n<li>Added snippet description field<\/li>\n<li>Fixed a security issue<\/li>\n<li>Minor bug fixes and compatibility updates<\/li>\n<li>CSS &amp; JS files now versioned to fix caching<\/li>\n<\/ul>\n\n<h4>1.4.3<\/h4>\n\n<ul>\n<li>Added a warning note that plugin data will be lost if the plugin is deleted<\/li>\n<li>Updated redirects to use wp_safe_redirect() for improved security<\/li>\n<li>Updated a few SQL queries to follow secure practices <\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>Added version check to trigger DB updates and clear cache on updates<\/li>\n<li>Minor bug fixes and performance improvements<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Fixed image size issue reported <\/li>\n<li>Updated snippet dropdown in editor to allow only shortcodes in Manual Placement mode<\/li>\n<li>Fixed minor bugs and optimized performance<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added new Snippet Placement Methods: Automatic, Execute on Demand, and Shortcode (Manual) for more flexible snippet placement options.<\/li>\n<li>Added Snippet Placement filter on the Manage Snippets page<\/li>\n<li>Improved compatibility with the latest WordPress versions<\/li>\n<li>Fixed minor bugs and optimized performance.<\/li>\n<\/ul>\n\n<h4>1.3.8<\/h4>\n\n<ul>\n<li>Added \"Execute shortcodes in editors\" setting for Elementor and other editor compatibility<\/li>\n<li>Updated about page with new premium feature details, including automatic placement locations<\/li>\n<\/ul>\n\n<h4>1.3.7<\/h4>\n\n<ul>\n<li>Updated nonce verification for bulk actions to prevent CSRF attacks<\/li>\n<li>Compatibility with WordPress 6.6.1<\/li>\n<\/ul>\n\n<h4>1.3.6<\/h4>\n\n<ul>\n<li>Exception handling updated<\/li>\n<li>Minor bugs fixed<\/li>\n<\/ul>\n\n<h4>1.3.5<\/h4>\n\n<ul>\n<li>Patch security vulnerability<\/li>\n<li>Compatibility with latest version of WordPress<\/li>\n<\/ul>\n\n<h4>1.3.4<\/h4>\n\n<ul>\n<li>Minor bugs fixed<\/li>\n<li>Compatibility with latest version of WordPress<\/li>\n<\/ul>\n\n<h4>1.3.3<\/h4>\n\n<ul>\n<li>Minor bugs fixed<\/li>\n<li>Option to send exception report to email<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<ul>\n<li>Option to enable exception handling<\/li>\n<li>Option to preview snippet<\/li>\n<li>Database collation issue fixed<\/li>\n<li>Minor bugs fixed<\/li>\n<\/ul>\n\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Notice errors fixed<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Snippet selection support in classic editor block of Gutenberg<\/li>\n<li>Support for Search Snippet by name<\/li>\n<li>Navigation Improvements<\/li>\n<\/ul>\n\n<h4>1.2.6<\/h4>\n\n<ul>\n<li>Support for Bulk Actions(activate,deactivate,delete)<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Added fix for output buffering issue<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>Removed deprecated widget initializing function<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>Option to enable auto insert of php opening tags added.<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Automatic detection and correction of php opening and closing tags in snippet<\/li>\n<li>Updated nonces and validations<\/li>\n<li>Premium version details and comparison added<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Nonces Added<\/li>\n<li>A few bug fixes<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Compatibility with wordpress 4.3<\/li>\n<li>Added options to sort snippets in admin area by id and title<\/li>\n<li>Removed redirection after snippet edit<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Snippet chooser TinyMCE plugin modified<\/li>\n<li>Compatibility with wordpress 3.9<\/li>\n<li>A few bug fixes<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First official launch<\/li>\n<\/ul>","raw_excerpt":"Add PHP code to your pages and posts easily using shortcodes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25224"}],"author":[{"embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/f1logic"}],"wp:attachment":[{"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25224"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25224"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25224"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25224"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25224"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/nb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}