[wp-trac] [WordPress Trac] #60344: WordPress Developer Resources : There seems to be an issue with the function name in the example

WordPress Trac noreply at wordpress.org
Thu Jan 25 12:19:56 UTC 2024


#60344: WordPress Developer Resources : There seems to be an issue with the
function name in the example
--------------------------------+-----------------------------
 Reporter:  parthrana           |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  WordPress.org Site  |    Version:
 Severity:  normal              |   Keywords:  has-patch
  Focuses:                      |
--------------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60344>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list