Title: My Snippets
Author: Justin Tadlock
Published: <strong>3 دسامبر 2009</strong>
Last modified: 21 فوریه 2019

---

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

![](https://ps.w.org/my-snippets/assets/banner-772x250.png?rev=784282)

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/my-snippets_cbd1db.svg)

# My Snippets

 توسط [Justin Tadlock](https://profiles.wordpress.org/greenshady/)

[دانلود](https://downloads.wordpress.org/plugin/my-snippets.1.0.0.zip)

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

 [پشتیبانی](https://wordpress.org/support/plugin/my-snippets/)

## توضیحات

The My Snippets plugin allows you to define custom widget content on a per-post 
basis from the edit post screen.

While the plugin is both simple and powerful, it’ll never replace such plugins as
Widget Logic and Widget Context nor is that the plan. What it does is allow you 
to add custom widget content from the edit post screen without having to go to your
Widgets screen in the admin for additional configuration.

### Features:

 * Post-by-post (or any public post type) widget content that you control.
 * Extra widget for use on your site.
 * Easy-to-use snippets settings box on the post editor.
 * Supports HTML and shortcodes.

### Professional Support

If you need professional plugin support from me, the plugin author, you can access
the support forums at [Theme Hybrid](https://themehybrid.com), which is a professional
WordPress help/support site where I handle support for all my plugins and themes
for a community of 70,000+ users (and growing).

### Plugin Development

If you’re a theme author, plugin author, or just a code hobbyist, you can follow
the development of this plugin on it’s [GitHub repository](https://github.com/justintadlock/my-snippets).

### Donations

Yes, I do accept donations. If you want to buy me a beer or whatever, you can do
so from my [donations page](http://themehybrid.com/donate). I appreciate all donations,
no matter the size. Further development of this plugin is not contingent on donations,
but they are always a nice incentive.

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

[⌊My Snippets meta box on the edit post screen.⌉⌊My Snippets meta box on the edit
post screen.⌉[

My Snippets meta box on the edit post screen.

[⌊My Snippets widget on the widgets screen.⌉⌊My Snippets widget on the widgets screen
.⌉[

My Snippets widget on the widgets screen.

## نصب

 1. Uzip the `my-snippets.zip` folder.
 2. Upload the `my-snippets` folder to your `/wp-content/plugins` directory.
 3. In your WordPress dashboard, head over to the _Plugins_ section.
 4. Activate _My Snippets_.

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

  Why was this plugin created?

I love plugins like [Widget Context](https://wordpress.org/plugins/widget-contex)
and [Widget Logic](https://wordpress.org/plugins/widget-logic), which allow you 
to add contextual widgets. But, the thing that those plugins don’t do is give you
a way to add widget content without visiting the Widgets admin screen in WordPress.

I wanted a way to add a widget on a per-post basis when writing the post itself,
so this plugin was born.

No, it’s not a replacement of the aforementioned plugins but, rather, a complementary
plugin.

  How do I use it?

First, you need to add the “My Snippets” widget to any sidebar on your site. It 
won’t appear on the front end just yet though.

Any time you write a post, you can add a custom snippet title and content in the“
My Snippets” meta box. If you write something in the meta box, it will automatically
be shown in place of the widget when viewing that post on your site. If nothing 
is written in the meta box, nothing will be shown for the post.

  Does it work for other post types?

Yes, it works for all publicly-queryable post types. Basically, if your post type
has its own “page” on the front end of the site, you can add custom snippet content.

  What else do I need to know?

That’s pretty much it. This is an extremely simple plugin.

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

نقد و بررسی‌ای برای این افزونه یافت نشد.

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

“My Snippets” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

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

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

[ترجمه “My Snippets” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/my-snippets)

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

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

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

### Version 1.0.0

 * Recoded the plugin to utilize modern PHP techniques.
 * Upgraded the widget to make sure it plays nicely with PHP 7+.

### Version 0.2.0

 * Rewrote the code base to bring everything up to current WordPress standards.
 * Added support for custom post types.

### Version 0.1.0

 * Plugin launch. Everything’s new!

## اطلاعات

 *  نگارش **1.0.0**
 *  آخرین به‌روزرسانی **8 سال پیش**
 *  نصب‌های فعال **60+**
 *  نگارش وردپرس ** 4.9 یا بالاتر **
 *  آزمایش‌شده تا **5.0.29**
 *  نگارش PHP ** 5.6 یا بالاتر **
 *  زبان
 * [English (US)](https://wordpress.org/plugins/my-snippets/)
 * برچسب
 * [meta](https://fa.wordpress.org/plugins/tags/meta/)[post](https://fa.wordpress.org/plugins/tags/post/)
   [sidebar](https://fa.wordpress.org/plugins/tags/sidebar/)[widget](https://fa.wordpress.org/plugins/tags/widget/)
   [widgets](https://fa.wordpress.org/plugins/tags/widgets/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/my-snippets/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 2 5-ستاره     ](https://wordpress.org/support/plugin/my-snippets/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/my-snippets/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/my-snippets/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/my-snippets/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/my-snippets/reviews/?filter=1)

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

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

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

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

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

## کمک مالی

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

 [ کمک مالی به این افزونه ](http://themehybrid.com/plugins/my-snippets)