llms_get_user_postmeta( int $user_id, int $post_id, string $meta_key = null, bool $single = true, string $return = 'meta_value' )
Get user postmeta data or dates by user, post, and key.
Description Description
Parameters Parameters
- $user_id
-
(Required) WP User ID.
- $post_id
-
(Required) WP Post ID.
- $meta_key
-
(Optional) Meta key, if not supplied returns associative array of all metadata found for the given user / post.
Default value: null
- $single
-
(Optional) If true, returns only the data.
Default value: true
- $return
-
(Optional) Determine if the meta value or updated date should be returned [meta_value,updated_date]. Default 'meta_value'.
Default value: 'meta_value'
Return Return
(mixed)
Source Source
File: includes/functions/llms.functions.user.postmeta.php
Changelog Changelog
Version | Description |
---|---|
3.21.0 | Introduced. |