سلام مهندسوقتی ووکامرس نصب می کنید هیچ کس به پیشخوان دسترسی نداره مگر ویرایشگرها (منظور مشتریان دسترسی ندارند)
برای اینکه در صفحه تسویه حساب نبینه
از افزونه woocommerce checkout manager استفاده کنید.
function remove_personal_options(){
echo '<script type="text/javascript">jQuery(document).ready(function($) {
$(\'form#your-profile > h2:first\').remove(); // remove the "Personal Options" title
$(\'form#your-profile tr.user-rich-editing-wrap\').remove(); // remove the "Visual Editor" field
$(\'form#your-profile tr.user-admin-color-wrap\').remove(); // remove the "Admin Color Scheme" field
$(\'form#your-profile tr.user-comment-shortcuts-wrap\').remove(); // remove the "Keyboard Shortcuts" field
$(\'form#your-profile tr.user-admin-bar-front-wrap\').remove(); // remove the "Toolbar" field
$(\'form#your-profile tr.user-language-wrap\').remove(); // remove the "Language" field
$(\'form#your-profile tr.user-first-name-wrap\').remove(); // remove the "First Name" field
$(\'form#your-profile tr.user-last-name-wrap\').remove(); // remove the "Last Name" field
$(\'form#your-profile tr.user-nickname-wrap\').hide(); // Hide the "nickname" field
$(\'table.form-table tr.user-display-name-wrap\').remove(); // remove the “Display name publicly as” field
$(\'table.form-table tr.user-url-wrap\').remove();// remove the "Website" field in the "Contact Info" section
$(\'h2:contains("About Yourself"), h2:contains("About the user")\').remove(); // remove the "About Yourself" and "About the user" titles
$(\'form#your-profile tr.user-description-wrap\').remove(); // remove the "Biographical Info" field
$(\'form#your-profile tr.user-profile-picture\').remove(); // remove the "Profile Picture" field
$(\'table.form-table tr.user-aim-wrap\').remove();// remove the "AIM" field in the "Contact Info" section
$(\'table.form-table tr.user-yim-wrap\').remove();// remove the "Yahoo IM" field in the "Contact Info" section
$(\'table.form-table tr.user-jabber-wrap\').remove();// remove the "Jabber / Google Talk" field in the "Contact Info" section
});</script>';
}
add_action('admin_head','remove_personal_options');
این کد فقط مخفی میکنه؟؟ با محفی کردن مشکل حل نمیشه فقط صورت مسئله پاک میشهبا CSS و جاوا اسکریپت مثلا میتونی مخفی کنی.
PHP:function remove_personal_options(){ echo '<script type="text/javascript">jQuery(document).ready(function($) { $(\'form#your-profile > h2:first\').remove(); // remove the "Personal Options" title $(\'form#your-profile tr.user-rich-editing-wrap\').remove(); // remove the "Visual Editor" field $(\'form#your-profile tr.user-admin-color-wrap\').remove(); // remove the "Admin Color Scheme" field $(\'form#your-profile tr.user-comment-shortcuts-wrap\').remove(); // remove the "Keyboard Shortcuts" field $(\'form#your-profile tr.user-admin-bar-front-wrap\').remove(); // remove the "Toolbar" field $(\'form#your-profile tr.user-language-wrap\').remove(); // remove the "Language" field $(\'form#your-profile tr.user-first-name-wrap\').remove(); // remove the "First Name" field $(\'form#your-profile tr.user-last-name-wrap\').remove(); // remove the "Last Name" field $(\'form#your-profile tr.user-nickname-wrap\').hide(); // Hide the "nickname" field $(\'table.form-table tr.user-display-name-wrap\').remove(); // remove the “Display name publicly as” field $(\'table.form-table tr.user-url-wrap\').remove();// remove the "Website" field in the "Contact Info" section $(\'h2:contains("About Yourself"), h2:contains("About the user")\').remove(); // remove the "About Yourself" and "About the user" titles $(\'form#your-profile tr.user-description-wrap\').remove(); // remove the "Biographical Info" field $(\'form#your-profile tr.user-profile-picture\').remove(); // remove the "Profile Picture" field $(\'table.form-table tr.user-aim-wrap\').remove();// remove the "AIM" field in the "Contact Info" section $(\'table.form-table tr.user-yim-wrap\').remove();// remove the "Yahoo IM" field in the "Contact Info" section $(\'table.form-table tr.user-jabber-wrap\').remove();// remove the "Jabber / Google Talk" field in the "Contact Info" section });</script>'; } add_action('admin_head','remove_personal_options');
این موردو میدونمدرون جدول USER META قرار داره دیتای مربوط به کاربران.