You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That was fine when I had to do some serious customisation. But now I only want to accomplish two things:
remove the Other Tab (for editing one's own profile and others)
Add my own fantastic custom tabs.
In crawling through the source code I run across the wp_user_profiles_show_other_section filter in sections.php, but it's not doing what you'd think it should, namely: show_other_section as in:
So, what would be the recommended procedure for simply removing a single section like the catch-all 'other' tab?
Once this is settled (or improved if needed) I will happily expand the README.md with some more detailed documentation and even an example or two under:
Can I add my own sections?
Yes. There are a filters you can use to add or remove sections and their metaboxes.
p.s. will also fix the typo in the above.
The text was updated successfully, but these errors were encountered:
In the past I have used the
wp_user_profiles_core_files
filter to basically rewrite the entire default sections like so:That was fine when I had to do some serious customisation. But now I only want to accomplish two things:
In crawling through the source code I run across the
wp_user_profiles_show_other_section
filter in sections.php, but it's not doing what you'd think it should, namely: show_other_section as in:add_filter( 'wp_user_profiles_show_other_section', '__return_false');
So, what would be the recommended procedure for simply removing a single section like the catch-all 'other' tab?
Once this is settled (or improved if needed) I will happily expand the README.md with some more detailed documentation and even an example or two under:
p.s. will also fix the typo in the above.
The text was updated successfully, but these errors were encountered: