منو حذف کن

توضیحات

به کاربران با نقش‌های متفاوت اجازه دهید خود را از صفحه پروفایل شما یا هر جایی که می‌توان از کدهای کوتاه استفاده کرد، با استفاده از کد کوتاه [plugin_delete_me/] خود را حذف کنند.
تنظیمات این افزونه در زیر منو تنظیمات -> حذف من قرار دارد. وردپرس چندسایته پشتیبانی می‌شود.

چگونه کار می‌کند:

  • کاربر روی لینک حذف کلیک می کند، که به طور پیش فرض «حذف حساب» است، اما می تواند تغییر کند.

  • از کاربر پرسیده میشود که آیا میخواهد حذف شود.

  • اگر تایید شد، کاربر و همه پست‌ها، لینک‌ها، و نظرهای او (اختیاری) حذف میشود.

  • کاربر حذف شده (اختیاری) به URL صفحه فرود هدایت می شود، به طور پیش فرض صفحه اصلی است، می توان آن را تغییر داد یا خالی گذاشت.

تنظیمات در دسترس:

  • Enable or disable Network Wide, which applies a single page of settings across all Multisite network Sites.

  • نقش‌های خاص وردپرس (برای مثال: مشترکین) که میخواهید به آن‌ها اجازه حذف خود را بدهید، را انتخاب کنید.

  • کلاس و سبک ویژگی‌های لینک حذف میباشند.

  • <a> محتوای قابل کلیک کردن لینک حذف را تگ کنید.

  • آدرس صفحه فرود (لندینگ پیج).

  • Your Profile confirmation page Heading, Warning, Password (optionally require password), Button.

  • لینک حذف را در صفحه پروفایل شما فعال یا غیر فعال کنید.

  • متن تایید جاوا اسکریپت برای کد کوتاه (شورت کد).

  • فعال یا غیرفعال کردن تایید جاوا اسکریپت برای کد کوتاه( شورت کد).

  • Enable or disable using a form (require password) instead of a link for Shortcode.

  • چند سایته: حذف کاربر از کل شبکه یا فقط سایت فعلی.

  • حذف نظرها.

  • اعلان با ایمیل هنگامی که کاربر حساب کاربری خود را حذف میکند.

عکس‌های صفحه

  • صفحه پروفایل شما
  • Your Profile confirmation page. (This page is included out of the box)
  • Example of Shortcode Link. (Enable or disable the Javascript confirm dialog)
  • Example of Shortcode Form. (Create a page like this and send users to it for delete confirmation)
  • Network Admin -> Settings -> Delete Me subpanel. (Multisite installations only)
  • تنظیمات -> حذف من زیرمنو.

نصب

پایه

  1. نصب خودکار در وردپرس در زیر پنل پلاگین -> افزودن یا آپلود پوشه delete-me در فهرست /wp-content/plugins/ .

  2. پلاگین را در قسمت پلاگین ها در پنل وردپرس خود فعال کنید.

  3. به تنظیمات -> حذفزیرپنل، نقش‌های وردپرس را که می‌خواهید اجازه دهید با استفاده از حذف من حذف شوند را بررسی کنید و روی ذخیره تغییرات کلیک کنید.

  4. همینه! پیوند حذف به طور خودکار در پایین صفحه پروفایل شما برای نقش هایی که اجازه داده‌اید قرار می‌گیرد. اگر ترجیح می‌دهید پیوند حذف در قسمت front-end باشد، لطفاً مطلب زیر را بخوانید.

Advanced: Shortcode Usage

Note: To prevent the delete link from appearing on the Your Profile page, uncheck the setting Link Enabled.

  • Custom Profile Page – Copy and paste the Shortcode [plugin_delete_me /] into the Post or Page you’ve created.
  • Theme File – To call the Shortcode in one of your .php Theme files, use <?php echo do_shortcode( '[plugin_delete_me /]' ); ?>.
  • Text Widget – To use the Shortcode in a Text Widget, make sure the line add_filter( 'widget_text', 'do_shortcode' ); appears in your Theme Functions (functions.php) file.
  • Attributes – The attributes class, style, html, js_confirm_warning, landing_url may be used to override settings, but are not required. They provide site owners the ability to use multiple languages and/or multiple links within the same site or even the same page each configured differently.

Advanced: Translation

توجه: فهرست زبان‌ها برای افزونه‌ها: /wp-content/languages/plugins

  1. Choose a translation method:
    A) Get or provide translations of this plugin on WordPress.org. Alternatively, some language plugins (e.g. Polylang) can download and install the publicly available language files for plugins.
    B) Create your own translations using the included delete-me.pot template file found in this plugin’s languages directory and the free tool Poedit.
  2. Once you have finished your translations, export and save them as a .mo file.
  3. Name the .mo file delete-me-{locale}.mo (e.g. delete-me-en_US.mo)
  4. Place the .mo file into the languages directory for plugins.

If you’re using Poedit, it will create a .po file too. You should keep the .po file in order to open and save changes to your translations or to update the .po file with source text changes when an updated delete-me.pot file is released. Just be aware that the actual translations used by the plugin are inside the .mo file.

هشدار: اگر فایل‌های ترجمه خود را به جای دایرکتوری نشان داده شده در بالا در فهرست زبان‌های این افزونه قرار دهید، آن‌ها حذف می‌شوند یا با هر چیزی که نویسنده ممکن است هنگام به‌روزرسانی افزونه اضافه کرده باشد، جایگزین می‌شوند.

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

چه اتفاقی برای پست‌ها، پیوندها و (اختیاری) نظرات متعلق به یک کاربر حذف شده می‌افتد؟

اکثر انواع پست ها و نظرات به سطل زباله منتقل می شوند. لینک ها برای همیشه حذف می شوند.

آیا این افزونه از WordPress Multisite پشتیبانی می کند؟

بله، فعال سازی شبکه و فعال سازی تک سایت هر دو پشتیبانی می شوند. کاربران و محتوای آنها فقط از سایتی که خود را از آن حذف می کنند حذف می شود، سایر سایت های شبکه تحت تأثیر قرار نمی گیرند.

هنگام استفاده از چند سایته، آیا کاربران از شبکه حذف می شوند یا فقط حذف سایت از آن نشأت گرفته است؟

به‌طور پیش‌فرض، کاربرانی که در چندین سایت در شبکه ثبت‌نام کرده‌اند، فقط از سایت فعلی حذف می‌شوند و در دیگر سایت ها باقی می مانند. با این حال، اگر تنظیم “حذف از شبکه” علامت زده شود، کاربران از کل شبکه حذف خواهند شد.

آیا یک کاربر میتواند کسی غیر از خودش را حذف کند؟

خیر، کاربر حذف شده همان کاربر وارد شده است.

هنگامی که کاربران وارد سیستم نشده اند یا نقش آنها اجازه حذف خود را نمی‌دهد، کدکوتاه چه چیزی را نشان می دهد؟

هیچی، هنگام استفاده از تگ Shortcode خود بسته شونده (یعنی [plugin_delete_me /]). با این حال، هنگامی که از برچسب‌های کد کوتاه باز و بسته استفاده می‌شود (یعنی [plugin_delete_me]Content[/plugin_delete_me])، محتوای داخل برچسب‌ها به جای پیوند حذف ظاهر می‌شود.

کاربران پس از حذف خود به کجا فرستاده می شوند؟

تنظیمات -> پنل فرعی حذف من به شما امکان می دهد هر URL را که می خواهید کاربران حذف شده را به آن هدایت کنید، وارد کنید، به طور پیش فرض روی صفحه اصلی تنظیم شده است. می‌توانید «نشانی اینترنتی مقصد» را خالی بگذارید تا کاربران پس از حذف در همان URL باقی بمانند.

آیا قبل از اینکه کاربر خودش را حذف کند، تأییدی وجود دارد؟

Yes, the delete link on the Your Profile page leads to a pre-built confirmation page. You can optionally require users to confirm their password on this page before deletion. The Shortcode delete Link provides a Javascript confirm dialog [OK] [Cancel] by default, but may be disabled if preferred. Additionally, the Shortcode has a setting that provides a Form instead of the Link, which requires users to confirm their password.

آیا می توانم از کاربرانی که خود را حذف می کنند و چه چیزی حذف شده است، مطلع شوم؟

بله. تنظیمات -> زیرپنل حذف منتنظیماتی به نام “E-mail Notification” دارد، فقط کادر را علامت بزنید و تغییرات را ذخیره کنید.

آیا این افزونه اطلاعات شخصی کاربران را ذخیره می کند؟

خیر، تنها اطلاعات ذخیره شده مربوط به تنظیمات افزونه است که در زیر پنل تنظیمات -> حذف من قرار دارد.

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

7 مارس 2024
Hi there, I just want to add that it would be useful if you could include this too. ^^ I tested it on my website and it worked like a charm. I didn't test it for PayPal subscriptions, but for PMPro and Stripe, it works 100%. If someone needs it, you need to insert it into delete-me/inc/delete_user.php after line 123 and before the // Delete user (line comment.) Please make a back-up first.. 🙂 // Assuming you have the subscription ID stored somewhere in your code or user data $subscription_id = get_user_meta($this->user_ID, 'stripe_subscription_id', true); // Check and delete Paid Memberships Pro membership if (function_exists('pmpro_getMembershipLevelForUser') && function_exists('pmpro_changeMembershipLevel')) { $membership_level = pmpro_getMembershipLevelForUser($this->user_ID); if (!empty($membership_level)) { pmpro_changeMembershipLevel(false, $this->user_ID, 'inactive'); // Change to 'expired' if you want to expire the membership immediately } } // Check and cancel the Stripe subscription if (!empty($subscription_id)) { // Cancel the Stripe subscription at the end of the billing period try { $stripe->subscriptions->update($subscription_id, ['cancel_at_period_end' => false]); } catch (\Stripe\Exception\ApiErrorException $e) { // Handle any errors that occur during the Stripe API call // You might want to log the error or take appropriate action error_log('Stripe API Error: ' . $e->getMessage()); } } // Cancel the PayPal subscription $paypal_subscription_id = get_user_meta($this->user_ID, 'paypal_subscription_id', true); if (!empty($paypal_subscription_id)) { try { $subscription = \PayPal\Api\Subscription::get($paypal_subscription_id, $paypal); $subscription->cancel([], $paypal); } catch (\PayPal\Exception\PayPalConnectionException $e) { error_log('PayPal API Error: ' . $e->getMessage()); } } p.s. PLEASE, keep this plugin alive. Much appreciated!
18 دسامبر 2020
Works as advertised. You can choose user roles, place a shortcode on any page. Account and comments are deleted without problems. Warning messages and password prompts appear. Faced some difficulties. Users who automatically log into the system via social networks cannot enter a password, as they have never created one. There is also a hyperlink in the profile to delete the account, but it does not work. Everything else is good. Used in WordPress 5.6, PHP 7.4.7. Other plugins may contain user data. Thanks a lot to the developer!
2 اکتبر 2020
I wish every website, company, organization, whatever, had an easy and obvious way to completely delete your account. Yet it seems almost none do! This plug in empowers your users to do that. It is dead simple to set up, and it is pretty intelligent behind the scenes.
31 ژانویه 2020 1 پاسخ
This plugin in does exactly what the discriptons tells. A big plus is the integrated shortcode und the costumazation options. Just enough to modify everything you need. Wonderfull
30 می 2019
Greetings Clinton, Just to let you know that this plugin is absolutely perfect for what it does. I could so easily get it to work with Oxygen Builder / WP Multilang and Loco Translate. Awesome job you've done here. Thank you so much.
خواندن تمامی 22 نقد و بررسی‌

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

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

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

“منو حذف کن” به 4 زبان ترجمه شده است. با تشکر از مترجمین برای همکاری و کمک‌هایشان.

ترجمه “منو حذف کن” به زبان شما.

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

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

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

3.1

  • Release date: 11/11/2023
  • Added output sanitization to all editable settings to remove cross-site scripting vulnerability.

3.0

  • تاریخ انتشار: 2020/09/05
  • اضافه‌کردن ۳ ویژگی جدید برای فرم کد کوتاه: form_confirm_warning, form_password_label, form_confirm_button
  • در هر جایی که %username% قبلاً موجود بود، رشته جایگزین %displayname% اضافه شد.

2.9

  • تاریخ انتشار: 2020/05/04
  • افزودن تگ پاراگراف در اطراف خروجی کد کوتاه برای جلوگیری از مشکلات صف بندی.

2.8

  • تاریخ انتشار: 2018/19/12
  • اضافه کردن نقش، نام، نام خانوادگی داده کاربر به ایمیل اعلان.

2.7

  • تاریخ انتشار: 2018/29/07
  • اشکال رفع شد: استفاده از URL مقصد خالی که باعث خرابی در هنگام تغییر مسیر در برخی از تنظیمات سرور می شود.
  • اشکال رفع شد: URL های فرود در صفحه تنظیمات که به اشتباه http:// به آنها اضافه شده بود در حالی که حاوی طرح URL نبودند.

2.6

  • تاریخ انتشار: 2018/25/05
  • رفع 2 خطای تجزیه PHP که بر افرادی که از نسخه PHP کمتر از 5.4 استفاده می کنند تأثیر می گذارد.
  • پیامی برای مدیران به جای لینک حذف (یا فرم) اضافه شد تا به آنها یادآوری شود که گزینه حذف پیکربندی شده برای مدیران قابل مشاهده نیست.

2.5

  • تاریخ انتشار: 2018/01/03
  • تنظیمات چند سایتی “حذف از شبکه” تغییر کرده است تا بصری تر باشد. اکنون کاربران بدون توجه به تعداد سایت هایی که به آن تعلق دارند، از کل شبکه حذف می شوند.
  • تنظیمات چند سایتی “حذف از شبکه” اکنون به طور پیش فرض برداشته شده است.
  • اعلان‌های ایمیل چند سایتی اکنون شامل تعداد کل (اگر بیش از یک سایت وجود داشت) سایت‌های شبکه است که هر زمان که “حذف از شبکه” علامت زده شود، کاربر از آنها حذف می‌شود.

2.4

  • تاریخ انتشار: 2018/16/02
  • اشکال رفع شد: دامنه متن گمشده به دو ترجمه اضافه شد.
  • Uri افزونه‌ی نامعتبر برای مطابقت با الزامات اصلی افزونه وردپرس حذف شد.

2.3

  • تاریخ انتشار: 2018/06/02
  • اضافه شدن پشتیبانی برای ترجمه؛ اکنون یک پوشه languages حاوی یک فایل .POT حاوی رشته های انگلیسی برای ترجمه وجود دارد.
  • wpml-config.xml حذف شد تا از تضاد و سردرگمی بین گزینه پایگاه داده و تماس‌های ترجمه استاندارد جدید اضافه شده، جلوگیری شود.
  • لینک کمک‌مالی در صفحه افزونه ها با لینک به Changelog جایگزین شد.
  • از این نسخه به بعد، تنزل دادن افزونه به نسخه قبلی کار خواهد کرد اما به طور خودکار تنظیمات را به حالت پیش‌فرض بازنشانی می کند.
  • حداقل نسخه مورد‌نیاز وردپرس از 3.4 به 3.7 تغییر کرد.

2.2

  • تاریخ انتشار: 2018/27/01
  • Bug fixed: Multisite installations with Network Wide enabled would not get selected role updates for roles of newly added Sites.
  • Bug fixed: Error on user delete for WordPress versions less than 4.4.

2.1

  • Release date: 01/26/2018
  • Added Network Wide settings for Multisite installations that apply a single page of settings across all network Sites.
  • Added a setting that requires users to confirm their password on the Your Profile confirmation page.
  • Added a setting that allows inserting a form when using the shortcode instead of a link. This setting will also require users to confirm their password before deletion.
  • Added “user_registered” (e.g. 2018-01-25 01:30:15) user data to the deleted user email notification.
  • %sitename% can now be used for text replacement in the warning messages. The default warning messages have also been updated to include its use.

2.0

  • Release date: 06/22/2016
  • Applied init change discussed at https://wpml.org/forums/topic/delet-me-cant-be-translated/#post-919867
  • Added wpml-config.xml file to allow easier use with the popular WPML plugin.

1.9

  • Release date: 12/08/2015
  • Fixed issue with using Shortcode multiple times on the same page or post.

1.8

  • Release date: 07/15/2015
  • The following new Shortcode attributes may be used to override settings, but are not required: class, style, html, js_confirm_warning, landing_url.
  • v1.7 change reverted – %shortcode% term no longer used, attributes were added instead for a more complete and consistent way of customizing the shortcode.

1.7

  • Release date: 07/14/2015
  • Shortcode Link text can now contain %shortcode% which is replaced with the text inside the open and close shortcode tags. This was added to allow a dynamic way of changing the delete link text.

1.6

  • Release date: 03/09/2015
  • Your Profile delete link now leads to a customizable confirmation page instead of the Javascript confirm dialog.
  • Added settings for Your Profile confirmation page Heading, Warning, and Button.
  • Added setting to enable or disable Javascript confirm dialog for Shortcode delete link. This was added to make it easier to use a custom confirmation page with the Shortcode.

1.5

  • Release date: 10/18/2014
  • Your Profile and Shortcode “Landing URL” may now be left blank to remain at the same URL after deletion.
  • Removed setting and code for “Uninstall on Deactivate”. You can still wipe all traces of the plugin from the Plugins panel by deactivating and clicking Delete.
  • Added button on settings page, “Restore Default Settings”.
  • Shortcode deletion link no longer relies on the get_permalink() function. This makes the shortcode’s placement more flexible and the link location more accurate.
  • wp_logout() function is now run after user deletion to cleanup session and auth cookies.
  • Delete link default updated, old = “Delete Profile”, new = “Delete Account”.
  • Javascript confirm text default updated, the line about Post and Links was removed.

1.4

  • Release date: 04/24/2013
  • Added setting to enable or disable the delete link on the Your Profile page.
  • Added an uninstall.php file. This enables removal of the plugin capabilities and settings when you “Delete” the plugin from the Plugins panel in WordPress.
  • Fixed possible PHP Warning: missing argument 2 $wpdb->prepare() on Multisite installations using WordPress 3.5+
  • Fixed possible PHP Fatal error: undefined function is_plugin_active_for_network() on Multisite installations when adding a new Site from outside the WordPress Admin pages.
  • Consolidated scripts to reduce the number of files used and the total plugin filesize.

1.3

  • Release date: 04/23/2013
  • Added setting to customize Javascript confirm text.

1.2

  • Release date: 02/07/2013
  • WordPress 3.4 now required.
  • Added Multisite and Network Activation support.
  • Added setting for Multisite to delete user from Network if user no longer belongs to any Network Sites.
  • Added setting to delete comments.
  • Edited e-mail notification to list the number of comments deleted.

1.1

  • Release date: 04/11/2011
  • Added setting for detailed e-mail notification when a user deletes themselves.
  • Fixed undefined function errors for wp_delete_post and wp_delete_link when user has Posts or Links.

1.0

  • Release date: 04/09/2011
  • Initial release.