rest_preprocess_comment
目录
apply_filters( ‘rest_preprocess_comment’, array $prepared_comment , WP_REST_Request $request )
过滤器::在为数据库准备好注释后对其进行过滤。Filter Hook: Filters a comment after it is prepared for the database.
说明(Description)
允许在为数据库准备好注释后立即对其进行修改。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$prepared_comment | (array) | 为wp_插入注释准备的注释数据。 |
$request | (WP_REST_Request) | 当前请求。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.7.0 | wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php:1365 | 1 | 0 |
上一篇: rest_prepare_user
总计 0 评论