A WordPress-centric search engine for devs and theme authors



preview_post_link ›

Since4.0.0
Deprecatedn/a
apply_filters( 'preview_post_link', $preview_link, $post )
Parameters: (2)
  • (string) $preview_link URL used for the post preview.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
Defined at:
Codex:

Filters the URL used for a post preview.





Source

return apply_filters( 'preview_post_link', $preview_link, $post );