WPDev.one
Core Function
View Source on Trac ↗

wp_get_post_revisions_url()

wp_get_post_revisions_url( mixed $post = 0 )

Returns the url for viewing and potentially restoring revisions of a given post.

Parameters 1 required

Name / Type Description
(int

| WP_Post) $post Optional. Post ID or WP_Post object. Default is global `$post`.

Required

Return Value

((string)
| null) The URL for editing revisions on the given post, otherwise null.

Function Information

Since Version
5.9.0
Source File
wp-includes/revision.php
Advertisement