llms_delete_user_postmeta( int $user_id, int $post_id, string $meta_key = null, mixed $meta_value = null )
Delete user postmeta data.
Description Description
Parameters Parameters
- $user_id
-
(Required) WP User ID.
- $post_id
-
(Required) WP Post ID.
- $meta_key
-
(Optional) Meta key for lookup, if not supplied, all matching items will be removed.
Default value: null
- $meta_value
-
(Optional) Meta value for lookup, if not supplied, all matching items will be removed.
Default value: null
Return Return
(bool) False if no postmetas has been deleted either because they do not exist or because of an error during the actual row deletion from the db. True if at least one existing user postmeta has been successfully deleted.
Source Source
File: includes/functions/llms.functions.user.postmeta.php
Changelog Changelog
Version | Description |
---|---|
3.33.0 | Returns true only if at least one existing user postmeta has been successfully deleted. |
3.21.0 | Introduced. |