首页 WordPress函数大全 delete_metadata_by_mid()

delete_metadata_by_mid()

2020-05-01 / 3502阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

delete_metadata_by_mid( string $meta_type, int $meta_id )

Deletes metadata by meta ID.

描述

参数

$meta_type

(string)
(Required)
Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table.

$meta_id

(int)
(Required)
ID for a specific meta row.

返回

(bool) True on successful delete, false on failure.

大家谈论
    我的见解