Title: Insert PHP Code Snippet
Author: f1logic
Published: <strong>16 سپتامبر 2013</strong>
Last modified: 22 ژوئن 2026

---

جستجوی افزونه‌ها

![](https://ps.w.org/insert-php-code-snippet/assets/banner-772x250.jpg?rev=1800967)

![](https://ps.w.org/insert-php-code-snippet/assets/icon-128x128.png?rev=1800967)

# Insert PHP Code Snippet

 توسط [f1logic](https://profiles.wordpress.org/f1logic/)

[دانلود](https://downloads.wordpress.org/plugin/insert-php-code-snippet.1.4.7.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/insert-php-code-snippet/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/insert-php-code-snippet/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/insert-php-code-snippet/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/insert-php-code-snippet/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/insert-php-code-snippet/)

## توضیحات

A quicklook into Insert PHP Code Snippet

    ```
    ★ Convert PHP snippets to shortcodes
    ★ Insert PHP code easily using shortcode
    ★ Support for PHP snippet shortcodes in widgets
    ★ Dropdown menu in TinyMCE editor to pick snippet shortcodes easily
    ```

#### Features in Detail

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.

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.

#### About

Insert PHP Code Snippet is developed and maintained by [XYZScripts](http://xyzscripts.com/).
For any support, you may [contact us](http://xyzscripts.com/support/).

★ [Insert PHP Code Snippet User Guide](http://help.xyzscripts.com/docs/insert-php-code-snippet/user-guide)

★ [Insert PHP Code Snippet FAQ](http://help.xyzscripts.com/docs/insert-php-code-snippet/faq/)

### More Information

★ [Insert PHP Code Snippet User Guide](http://help.xyzscripts.com/docs/insert-php-code-snippet/user-guide)

★ [Insert PHP Code Snippet FAQ](http://help.xyzscripts.com/docs/insert-php-code-snippet/faq/)

#### Troubleshooting

Please read the FAQ first if you are having problems.

#### Requirements

    ```
    WordPress 5.0+
    PHP 7+
    ```

#### Feedback

We would like to receive your feedback and suggestions. You may submit them at our
[support desk](http://xyzscripts.com/members/support/).

## عکس‌های صفحه

[⌊This is the shortcode generator page⌉⌊This is the shortcode generator page⌉[

This is the shortcode generator page

[⌊This is page where you can manage all your snippets⌉⌊This is page where you can
manage all your snippets⌉[

This is page where you can manage all your snippets

[⌊The shortcodes are easily accessible in the content editor⌉⌊The shortcodes are
easily accessible in the content editor⌉[

The shortcodes are easily accessible in the content editor

## نصب

★ [Insert PHP Code Snippet User Guide](http://help.xyzscripts.com/docs/insert-php-code-snippet/user-guide)
★ [Insert PHP Code Snippet FAQ](http://help.xyzscripts.com/docs/insert-php-code-snippet/faq/)

 1. Extract `insert-php-code-snippet.zip` to your `/wp-content/plugins/` directory.
 2. In the admin panel under plugins activate Insert PHP Code Snippet.

If you need any further help, you may contact our [support desk](http://xyzscripts.com/support/).

## سوالات متداول

★ [Insert PHP Code Snippet User Guide](http://help.xyzscripts.com/docs/insert-php-code-snippet/user-guide)

★ [Insert PHP Code Snippet FAQ](http://help.xyzscripts.com/docs/insert-php-code-snippet/faq/)

### 1. The Insert PHP Code Snippet is not working properly.

Please check the wordpress version you are using. Make sure it meets the minimum
version recommended by us. Make sure all files of the `insert php code snippet` 
plugin uploaded to the folder `wp-content/plugins/`

### 2. I have 2 PHP shortcodes placed adjacently, but only one of them works.

Please use a whitespace to separate 2 shortcodes.

More questions ? [Drop a mail](http://xyzscripts.com/members/support/) and we shall
get back to you with the answers.

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/498f80d181a4c88274b03071331f27f3f74988dc02a8bc7e40e87cb52d6ba23a?
s=60&d=retro&r=g)

### 󠀁[Easy to use](https://wordpress.org/support/topic/easy-to-use-5390/)󠁿

 [cmorgancmc](https://profiles.wordpress.org/cmorgancmc/) 9 آگوست 2026

It’s like having a completely custom site within WordPress. Easy to use, with no
breaking effects. one of my first installs on every site.

![](https://secure.gravatar.com/avatar/a48e796e2464e597ff9109d0ebb7aa18297bb5101615a2d44dd3bfeaf9912ece?
s=60&d=retro&r=g)

### 󠀁[Excelent!](https://wordpress.org/support/topic/excelent-1685/)󠁿

 [estebam](https://profiles.wordpress.org/estebam/) 29 جولای 2026

All you need!

![](https://secure.gravatar.com/avatar/667ef121aec74a751998f293e6e401c31b3a28969e7ccbb4262b8f2db00eaf87?
s=60&d=retro&r=g)

### 󠀁[Great product to solve problems](https://wordpress.org/support/topic/great-product-to-solve-problems/)󠁿

 [wv0l](https://profiles.wordpress.org/wv0l/) 22 می 2026

I use it to allow me to select between two different forms (short codes) based of
the month of the date. Also allows me to pass data from the body of one page to 
another page to be displayed in the body of that page. Gets around WP not letting
you create any part of a page except the body. One other thing, it works for me 
on WP V7.0

![](https://secure.gravatar.com/avatar/2d71c362cb1f8e9ff18c47b00832d3fe30970181ca22b51bf3304d3256a5b9c3?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-41490/)󠁿

 [cigarjoe1961](https://profiles.wordpress.org/cigarjoe1961/) 13 می 2026

Great Plugin

![](https://secure.gravatar.com/avatar/19004bbf19e78960202e4206e1f3f5372661cd2435575c8f11b32e119ec82e5f?
s=60&d=retro&r=g)

### 󠀁[Perfect plugin](https://wordpress.org/support/topic/perfect-plugin-1463/)󠁿

 [shinkibo](https://profiles.wordpress.org/shinkibo/) 5 می 2026

Really useful plugin that works perfectly.It does exactly what I xas looking for.
Highly recommended.

![](https://secure.gravatar.com/avatar/c834115c9fd6ad303ec6eb66eafed886f745a43da1acc0293e47ff6a74233325?
s=60&d=retro&r=g)

### 󠀁[Très efficace](https://wordpress.org/support/topic/tres-efficace-36/)󠁿

 [uloz](https://profiles.wordpress.org/uloz/) 16 آوریل 2026

Fait le job sans problèmes.

 [ خواندن تمامی 705 نقد و بررسی‌ ](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

## توسعه دهندگان و همکاران

“Insert PHP Code Snippet” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت 
کرده‌اند.

مشارکت کنندگان

 *   [ f1logic ](https://profiles.wordpress.org/f1logic/)

[ترجمه “Insert PHP Code Snippet” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/insert-php-code-snippet)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/insert-php-code-snippet/)،
[مخزن SVN](https://plugins.svn.wordpress.org/insert-php-code-snippet/) را بررسی 
کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/insert-php-code-snippet/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/insert-php-code-snippet/)
مشترک شوید.

## گزارش تغییرات

#### 1.4.7

 * PHP 8.3 compatibility improvements.
 * Minor code hardening and stability fixes.

#### 1.4.6

 * Fixed duplicate “Snippet Preview” pages issue in WordPress Multisite environments
 * Added a setting for manual shortcode usage display and tracking
 * Minor bug fixes

#### 1.4.5

 * Improved snippet list UI and placement clarity
 * Added usage details for snippets used via shortcode
 * Minor bug fixes

#### 1.4.4

 * Added snippet description field
 * Fixed a security issue
 * Minor bug fixes and compatibility updates
 * CSS & JS files now versioned to fix caching

#### 1.4.3

 * Added a warning note that plugin data will be lost if the plugin is deleted
 * Updated redirects to use wp_safe_redirect() for improved security
 * Updated a few SQL queries to follow secure practices

#### 1.4.2

 * Added version check to trigger DB updates and clear cache on updates
 * Minor bug fixes and performance improvements

#### 1.4.1

 * Fixed image size issue reported
 * Updated snippet dropdown in editor to allow only shortcodes in Manual Placement
   mode
 * Fixed minor bugs and optimized performance

#### 1.4

 * Added new Snippet Placement Methods: Automatic, Execute on Demand, and Shortcode(
   Manual) for more flexible snippet placement options.
 * Added Snippet Placement filter on the Manage Snippets page
 * Improved compatibility with the latest WordPress versions
 * Fixed minor bugs and optimized performance.

#### 1.3.8

 * Added “Execute shortcodes in editors” setting for Elementor and other editor 
   compatibility
 * Updated about page with new premium feature details, including automatic placement
   locations

#### 1.3.7

 * Updated nonce verification for bulk actions to prevent CSRF attacks
 * Compatibility with WordPress 6.6.1

#### 1.3.6

 * Exception handling updated
 * Minor bugs fixed

#### 1.3.5

 * Patch security vulnerability
 * Compatibility with latest version of WordPress

#### 1.3.4

 * Minor bugs fixed
 * Compatibility with latest version of WordPress

#### 1.3.3

 * Minor bugs fixed
 * Option to send exception report to email

#### 1.3.2

 * Option to enable exception handling
 * Option to preview snippet
 * Database collation issue fixed
 * Minor bugs fixed

#### 1.3.1

 * Notice errors fixed

#### 1.3

 * Snippet selection support in classic editor block of Gutenberg
 * Support for Search Snippet by name
 * Navigation Improvements

#### 1.2.6

 * Support for Bulk Actions(activate,deactivate,delete)

#### 1.2.5

 * Added fix for output buffering issue

#### 1.2.4

 * Removed deprecated widget initializing function

#### 1.2.3

 * Option to enable auto insert of php opening tags added.

#### 1.2.2

 * Automatic detection and correction of php opening and closing tags in snippet
 * Updated nonces and validations
 * Premium version details and comparison added

#### 1.2.1

 * Nonces Added
 * A few bug fixes

#### 1.2

 * Compatibility with wordpress 4.3
 * Added options to sort snippets in admin area by id and title
 * Removed redirection after snippet edit

#### 1.1

 * Snippet chooser TinyMCE plugin modified
 * Compatibility with wordpress 3.9
 * A few bug fixes

#### 1.0

 * First official launch

## اطلاعات

 *  نگارش **1.4.7**
 *  آخرین به‌روزرسانی **2 ماه پیش**
 *  نصب‌های فعال **90,000+**
 *  آزمایش‌شده تا **7.0.4**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/insert-php-code-snippet/)
 * برچسب
 * [Add PHP](https://fa.wordpress.org/plugins/tags/add-php/)[insert PHP](https://fa.wordpress.org/plugins/tags/insert-php/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/insert-php-code-snippet/advanced/)

## امتیازها

 4.9 از 5 ستاره.

 *  [  امتیاز 676 5-ستاره     ](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/?filter=5)
 *  [  امتیاز 10 4-ستاره     ](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/?filter=4)
 *  [  امتیاز 1 3-ستاره     ](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/?filter=3)
 *  [  امتیاز 2 2-ستاره     ](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/?filter=2)
 *  [  امتیاز 16 1-ستاره     ](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/?filter=1)

[بررسی شما](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/insert-php-code-snippet/reviews/)

## مشارکت کنندگان

 *   [ f1logic ](https://profiles.wordpress.org/f1logic/)

## پشتیبانی

مشکلات حل شده در دو ماه گذشته:

     0 از 1

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/insert-php-code-snippet/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](http://xyzscripts.com/donate/)