wp_restore_post_revision

动作钩子


do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] )
参数
  • (int)
    $post_id
    Post ID.
    Required:
  • (int)
    $revision_id
    Post revision ID.
    Required:
定义位置
  • wp-includes/revision.php
    , line 444
引入
2.6.0
弃用

Fires after a post revision has been restored.

do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] );