preview_post_link

Advertisement

Summery Summery

Filters the URL used for a post preview.

Syntax Syntax

apply_filters( 'preview_post_link', string $preview_link, WP_Post $post )

Parameters Parameters

$preview_link

URL used for the post preview.

$post

Post object.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Added the $post parameter.
2.0.5 Introduced.

Advertisement

Leave a Reply