Make WordPress Core

#60344 closed defect (bug) (invalid)

WordPress Developer Resources : There seems to be an issue with the function name in the example

Reported by: parthrana's profile parthrana 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)

#1 @swissspidy
17 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

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!

Note: See TracTickets for help on using tickets.