WordPress开发者和主题制作者的搜索引擎



rest_delete_revision ›

Since4.7.0
已弃用n/a
do_action( 'rest_delete_revision', $result, $request )
参数: (2)
  • ((mixed)) $result The revision object (if it was deleted or moved to the trash successfully) or false (failure). If the revision was moved to the trash, $result represents its new state; if it was deleted, $result represents its state before deletion.
    Required: Yes
  • (WP_REST_Request) $request The request sent to the API.
    Required: Yes
定义在:
文档:

Fires after a revision is deleted via the REST API.





源码

do_action( 'rest_delete_revision', $result, $request );