首页 WordPress函数大全 rest_validate_value_from_schema()

rest_validate_value_from_schema()

2020-05-02 / 5729阅 / 悠然

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

rest_validate_value_from_schema( mixed $value, array $args, string $param = '' )

验证基于的值

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

参数

$value

(mixed)
(Required)
The value to validate.

$args

(array)
(Required)
Schema array to use for validation.

$param

(string)
(Optional)
The parameter name, used in error messages.

Default value: ''

返回

(true|WP_Error)

大家谈论
    我的见解