rest_pre_insert_application_password

过滤钩子


apply_filters( 'rest_pre_insert_application_password', $prepared, $request )
参数
  • (stdClass)
    $prepared
    An object representing a single application password prepared for inserting or updating the database.
    Required:
  • (WP_REST_Request)
    $request
    Request object.
    Required:
定义位置
  • wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
    , line 594
引入
5.6.0
弃用

在通过REST API插入应用密码之前对其进行过滤。

return apply_filters( 'rest_pre_insert_application_password', $prepared, $request );