[wp-trac] [WordPress Trac] #64131: A new function to test if a thing is an instance of the WP_User class

WordPress Trac noreply at wordpress.org
Tue Oct 21 18:35:45 UTC 2025


#64131: A new function to test if a thing is an instance of the WP_User class
-----------------------------+-----------------------------------
 Reporter:  profiletoggler   |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Users            |    Version:  trunk
 Severity:  normal           |   Keywords:  needs-design-feedback
  Focuses:                   |
-----------------------------+-----------------------------------
 {{{#!php
 <?php
 function is_wp_user( $thing ) {
  return ( $thing instanceof WP_User );
 }
 }}}

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


More information about the wp-trac mailing list