Dev Resources

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

llms_bulk_update_user_postmeta( int $user_id, int $post_id, array $data = array(), bool $unique = true )

Update bulk update user postmeta data.

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.

$data

(Optional) Associative array of meta keys => meta values to update.

Default value: array()

$unique

(Optional) If true, updates existing value (if it exists). If false, will add a new record (allowing multiple records with the same key to exist). Deafult true.

Default value: true


Top ↑

Return #Return

(array|true) On error returns an associative array of the submitted keys, each item will be true for success or false for error. On success returns true.


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