2020-05-02 / 3218阅 / 悠然
清理基于字段的帖子>
可能的上下文值是:“ raw”,“ edit”,“ db”,“ display”,“ attribute”和“ js”。默认情况下使用“显示”上下文。调用过滤器时,“属性”和“ js”上下文被视为“显示”。
(string)
(Required)
The Post Object field name.
(mixed)
(Required)
The Post Object value.
(int)
(Required)
Post ID.
(string)
(Optional)
How to sanitize post fields. Looks for 'raw', 'edit', 'db', 'display', 'attribute' and 'js'.
Default value: 'display'
(mixed) Sanitized value.