I want to hide/remove the Personal Options in the Your Profile (wp-admin/profile.php
) admin page.
I am aware that solutions for this exist, but I they use jQuery to do hide this section. This works, but when a user has JavaScript disabled in their browser, it will show up again. Therefore it is not a proper way to remove Personal Options.
Is there a way to remove the Personal Options section from the HTML source of the page? This means no jQuery or CSS hacks, or core file modification.
This should do the trick
Also, don’t forget to mark your previous questions as solved 🙂
Accepted answer is not working with 4.8
Here comes an up to date and simplified code that should work with any version:
Was just trying to figure this out and came across this answer. The above code by Cor van doesn’t work anymore, but with a slight change of the add_action, it can.
All you need to do is change the last two lines from:
to
So, the final code would look something like:
Thanks to the comment from @Per I got it working for 4.5.2
Update for 3.9, the following works:
Here’s my CSS solution, tested in WordPress 4.9.8
I just wanted to clarify that the code will not work for localized versions of WordPress, because of the hardcoded
Personal Options
string. I cannot think of any easy solution here, but suggestions are welcome.I would have added this as a comment, but I haven’t got enough reputation to add a comment.
I also take this opportunity to re-paste the whole code updated for WordPress version 3.9.
Here it is:
Again, if you know in advance what the language of your WP installation will be, change the
Personal Options
string to the localized version of your language, for example in Italian you will replace it withImpostazioni personali
.By using
in the cor_remove_personal_options function, it is localized as well.
I´ve found this solution on: https://premium.wpmudev.org/blog/how-to-simplify-wordpress-profiles-by-removing-personal-options/?ptm=c&utm_expid=3606929-108.O6f5ypXuTg-XPCV9sY1yrw.2
If you want to be more specific or remove more you should have a look over here: https://isabelcastillo.com/hide-personal-options-wordpress-admin-profile
You can just add those lines into the function.
I remove only title and use CSS to hide first table…
For me, in 2023, this work: