افزونه فال حافظ

نمایش فال حافظ در وردپرس با یک شورت‌کد ساده — صفحات آماده، طراحی زیبا، امنیت کامل

Fale Hafez WordPress Plugin

Display random verses from Hafez's poetry on any WordPress site. One-click page setup, AJAX fortune refreshing, bilingual admin panel, and security-hardened code.

✓ رایگان ✓ فارسی ✓ امن ✓ Open Source ✓ WordPress 4.7+

تصاویر پلاگین

آنچه بازدیدکننده و مدیر سایت می‌بینند

What your visitors and site admin will see

نمایش شعر فال حافظ

صفحه فال تصادفی

نمایش شعر حافظ در قاب تزئینی طلایی با دکمه «فال جدید» — بدون reload صفحه

Random Hafez poem in a gold ornamental frame with AJAX "New Fortune" button

پنل مدیریت فال حافظ

پنل مدیریت

داشبورد ادمین با وضعیت صفحات، دکمه ساخت خودکار، و راهنمای شورت‌کدها

Admin dashboard with page status cards, one-click page builder, and shortcode reference

صفحه طریقه گرفتن فال حافظ

صفحه طریقه گرفتن فال

صفحه آداب فال با دکمه طلایی که مستقیم به فال تصادفی لینک می‌شود

Fortune intro page with editable text and golden CTA button linking to the random poem page

امکانات

Features
🎲

فال تصادفی بدون reload

دکمه «فال جدید» با AJAX شعر جدید می‌آورد — بدون بارگذاری مجدد صفحه

AJAX-powered "New Fortune" button replaces the poem instantly with a fade animation

ساخت خودکار صفحات

با یک کلیک هر دو صفحه مورد نیاز ساخته و به هم لینک می‌شوند

One-click page creator builds and links both required pages automatically — no shortcode copy-pasting

✏️

ویرایش کامل محتوا

عنوان، متن، دکمه و لینک صفحه فال از پنل ادمین قابل تغییر است

Full content control: title, subtitle, description, button text, and link — all editable from the admin panel

👁️

پیش‌نمایش زنده

همزمان با تایپ کردن در پنل ادمین، پیش‌نمایش صفحه آپدیت می‌شود

Live preview panel in the admin settings updates in real time as you type

🎨

طراحی منحصربه‌فرد

قاب طلایی تزئینی، انیمیشن fade، دکمه gradient — همه با CSS/JS یونیک

Decorative gold frame, fade animations, gradient button — all with unique CSS/JS IDs to prevent theme conflicts

🔒

امنیت کامل

بررسی nonce، capability، rate limiting، escaping و sanitization در تمام نقاط

Nonce + capability checks, per-IP rate limiting, full output escaping and input sanitization throughout

شورت‌کدها

Shortcodes
[HAFEZ_RANDOM]

نمایش شعر تصادفی حافظ در قاب تزئینی با دکمه فال جدید

Displays a random Hafez poem inside a decorative gold frame with an AJAX "New Fortune" refresh button

[FAL_PAGE]

صفحه کامل آداب و طریقه گرفتن فال حافظ با دکمه طلایی لینک‌دار

Full Hafez fortune-telling intro page with editable content and a golden CTA button linking to the random poem page

[faleHafez_hafez_poem id="5"]

نمایش یک غزل خاص از حافظ با شماره

Display a specific Hafez poem by its ID number

🔒

امنیت

Security

Nonce + Capability Check

All admin forms verify both WordPress nonce and user capability before processing — double-layer CSRF protection

Output Escaping (XSS Prevention)

All output uses esc_html(), esc_attr(), esc_url(), and wp_kses_post() — no raw DB data ever reaches the browser

SQL Injection Prevention

All database queries use $wpdb->prepare() with typed placeholders — zero raw user input in SQL

AJAX Rate Limiting

Public AJAX endpoint limited to 30 requests per minute per IP using WordPress transients — prevents database spam

Direct File Access Blocked

All PHP files check for ABSPATH and exit immediately if accessed directly outside WordPress

Minimal Data Exposure

Database queries select only required columns (SELECT content, not SELECT *) — no unnecessary data exposure

💬

پشتیبانی

Support
✉️

ایمیل پشتیبانی

نیاز به پشتیبانی داری؟ ایمیل بزن تا در اسرع وقت پاسخ بگیری.

6arshid@gmail.com

Need help? Send an email and we'll get back to you as soon as possible.

❤️

حمایت از توسعه‌دهنده

اگر از این افزونه رضایت داری، با یک حمایت کوچک انگیزه توسعه بیشتر را بده.

حمایت کنید

If this plugin has been useful, consider supporting further development.

6arshid.com/donate/

همین الان دانلود کنید

رایگان — بدون محدودیت — مستقیم از WordPress.org

Free · No restrictions · Direct from WordPress.org

⬇ دانلود افزونه فال حافظ