Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / Functions / llms_get_user_postmeta()

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.

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • User Contributed Notes

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'


Top ↑

Return #Return

(mixed)


Top ↑

Source #Source

File: includes/functions/llms.functions.user.postmeta.php


			

Expand full source code Collapse full source code


Top ↑

Changelog #Changelog

Changelog
Version Description
3.21.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

Proudly powered by WordPress