2020-05-02 / 3110阅 / 悠然
对每个帖子字段进行消毒。
如果上下文是“原始”,则post对象或数组将对整数字段进行最小化处理。
Top ↑
(object|WP_Post|array)
(Required)
The Post Object or Array
(string)
(Optional)
How to sanitize post fields. Accepts 'raw', 'edit', 'db', or 'display'.
Default value: 'display'
(object|WP_Post|array) The now sanitized Post Object or Array (will be the same type as $post).