首页 WordPress函数大全 sanitize_meta()

sanitize_meta()

2020-05-02 / 4547阅 / 悠然

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

sanitize_meta( string $meta_key, mixed $meta_value, string $object_type, string $object_subtype = '' )

消毒元值。

描述

参数

$meta_key

(string)
(Required)
Metadata key.

$meta_value

(mixed)
(Required)
Metadata value to sanitize.

$object_type

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

$object_subtype

(string)
(Optional)
The subtype of the object type.

Default value: ''

返回

(mixed) Sanitized $meta_value.

大家谈论
    我的见解