Solved it by using show_user_profile
and edit_user_profile
instead:
add_action( 'show_user_profile', 'wpse_237901_user_edit_section', 999 );
add_action( 'edit_user_profile', 'wpse_237901_user_edit_section', 999 );
function wpse_237901_user_edit_section() {
# Code here...
}
Related Posts:
- Some fields in Settings API form are saving, others are not
- How to display status messages in admin panel
- remove_query_arg on options.php
- Creating your own options-general.php page
- adding the category to the admin column for a custom post type?
- Change page title in admin area
- How to filter by post-format in admin?
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- How to remove the site health dashboard widget?
- Securing wp-admin folder – Purpose? Importance?
- stop redirection on /wp-admin call to /wp-login
- Wp3.5 Media Gallery Edit modal: change captions to title
- Admin account only shows Profile and Dashboard with no activity
- Opening specific posts on WP takes lot of time and freezes the editor
- Is it possible to set a option, and then redirect to another page directly from a admin notice link?
- Edit a WordPress site without the username and password?
- How to load a CSS file into WordPress admin area using Child Theme? [closed]
- Getting “Cannot modify header information – headers already sent” error, but only on backend
- Block access to wp-admin
- CDN + WP Admin Query – .htaccess redirection
- Users Unable to Access Dashboard/Posts/Pages
- Stop loading “collaborators” users on add new post or page?
- Prevent /wp-admin/ from redirecting to homepage?
- Disable the administration email address verification (new in 5.3)
- Password reset link becomes invalid immediately [closed]
- Get which template being in use within WordPress-admin
- special characters after saving draft interpreted as �
- WordPress and bbPress Login conflicts?
- Allow administrators to pick post author on custom post type edit screen
- /wp-admin/ works but website doesn’t load
- How can I use a variable to include a linked image?
- Add css code in admin_enqueue_scripts
- Why isn’t my email showing up as registered with WordPress anymore?
- Add custom list menu on Posts page in admin panel
- Does it matter if two people are using the same WordPress admin account?
- Add column to pages table
- Use Password Protected Form without the use of wp-login.php
- redirect to a dedicated sign in page
- 404 redirect wp-login and wp-admin after changing login url [closed]
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- My email address is displaying an email which does not work. What do i do?
- More than one admin logged in?
- How do I let logged out users see the dashboard?
- Too many redirects after added SSL redirect on port 80 virtual host
- Register page in admin area
- Removing Dashboard Menu Items Through The Database
- “WordPress installations is currently out of date” problem with difficult situation [closed]
- load-{$page hook} and returned parameter
- Custom plugin admin page issues
- Making Comments, a sub_menu in admin menu
- Without using wordpress cms Is it possible to signup from my html page
- Customising Word press Admin – Add Post Page functionality to another similar page
- How to add ‘Insert HTML Table’ button to TinyMCE in admin?
- How can I remove commas when adding tags?
- Displaying Title in Title Tag on Edit page?
- How to add custom CSS and JavaScript file for wp- admin dashboard (backend)
- GoDaddy hosting wp-admin problem
- How can I remove unwanted word on my WP site?
- Add custom fields to a page template, admin side
- Error messages & can’t reach admin after upgrading to 3.4.1 WordPress
- Newly created user role not displaying on users screen
- Could not override the url in wp-config file
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- Toggle between block ‘edit content’ and ‘select’ not properly working in WordPress Admin
- WordPress Admin extremely slow when other admin logged in
- Can’t acces login on new site
- WordPress Admin Panel Left Sidebar No showing on Post create page
- WordPress Migration Post Problems
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- Can’t access WP-Admin via HTTPS
- wp-admin and wp-login.php not Accessible after Cloudflare
- Get rendered HTML of Page in Admin Area
- Having SSL enabled on admin, but disabled on post preview and live preview?
- adding existing menu page on new customer user role
- stop customize.php redirect to login page if admin is not logged in
- Random authentication failures on a load balanced WP setup
- Can I get programmatic access to wp-admin?
- Strange URLs admin area bug
- wp.svgPainter cannot init error, causing issues with admin panel
- mysql_escape_string PROBLEM
- Cannot access my wordpress website
- Google flagged a wp-admin redirect as phishing
- Organising and display thousands of photos in media library
- Custom comment action
- Problem with admin columns
- get_current_screen – ‘Trying to get property of non-object’ error
- Added fields in quick edit screen need to update at the moment
- Block tools menu in wp-admin?
- is_admin() triggers error
- Modify admin panel tab position
- not able to add thumbnail custom field in dropdown
- No wp-admin, wp-config, or .htaccess folder/file
- Taking over a WordPress site
- wordpress admin is broken [closed]
- LinkControl not showing suggestions when used on admin page
- My website does not load since two days!
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard