Opened 17 months ago
Closed 17 months ago
#60344 closed defect (bug) (invalid)
WordPress Developer Resources : There seems to be an issue with the function name in the example
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | WordPress.org Site | Keywords: | has-patch |
Focuses: | Cc: |
Description
WordPress Developer Resources: The provided example contains an incorrect function name. Ensure the function name aligns with your intended custom code, maintaining accuracy for effective integration into the WordPress environment.
Incorrect Sample code :
function wpdocs_custom_user_profile_fields( $profileuser ) {
....
}
add_action( 'show_user_profile', 'custom_user_profile_fields' );
add_action( 'edit_user_profile', 'custom_user_profile_fields' );
Incorrect example document link:
https://developer.wordpress.org/reference/hooks/show_user_profile/
Screenshot : http://tinyurl.com/ytwz2ym9
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi there and welcome to Trac!
Please note that the sample in question is a user contributed note. Use the feedback form below it to point out things like this. That would be much appreciated!