wp_get_user_request_data( int $request_id )
Return data about a user request.
Description Description
Parameters Parameters
- $request_id
-
(int) (Required) Request ID to get data about.
Return Return
(WP_User_Request|false)
Source Source
File: wp-includes/user.php
function wp_get_user_request_data( $request_id ) { $request_id = absint( $request_id ); $post = get_post( $request_id ); if ( ! $post || 'user_request' !== $post->post_type ) { return false; } return new WP_User_Request( $post ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.9.6 | Introduced. |