-
Notifications
You must be signed in to change notification settings - Fork 28
Developer Reference
John James Jacoby edited this page Sep 18, 2026
·
2 revisions
profileaccountoptionspermissions-
otherwhen needed -
siteson multisite
-
wp_user_profiles_sections()returns the registered sections. -
wp_user_profiles_filter_sections()filters the registry by properties. -
wp_user_profiles_get_section_hooknames()returns administration hook names for a section. -
wp_user_profiles_get_file()identifies the parent administration file for the current context. -
wp_user_profiles_get_admin_area_url()builds an edit URL across site, network, and user administration. -
wp_is_profile_page()reports whether the current user is editing their own profile.
wp_user_profiles_sectionswp_user_profiles_filter_sectionswp_user_profiles_core_fileswp_user_profiles_add_meta_boxeswp_user_profiles_add_{$section_id}_meta_boxeswp_user_profiles_save_{$section_id}_sectionwp_user_profiles_savewp_user_profiles_user_supportswp_user_profiles_show_other_sectionwp_user_profiles_show_statuswp_user_profiles_admin_nav_htmlwp_user_profiles_admin_subnav_htmlwp_user_profiles_use_modern_styleswp_user_profiles_get_admin_area_url
The wp_user_profiles_use_modern_styles filter controls the site-wide modern presentation and defaults to false. See Modern Profile Styles for screenshots and the opt-in example.
Bundled metabox callbacks fire {function_name}_before and {function_name}_after actions around their output. Prefer the section APIs when adding a distinct field group; use callback hooks only when content must be adjacent to a specific bundled metabox.
Always check the selected user, current-user capability, section nonce, and field presence. Sanitize according to the destination field, report validation errors through the section's WordPress error flow, and avoid overwriting properties that were not submitted.