Core Function
View Source on Trac ↗ edit_post_link()
edit_post_link(
mixed $text = null,
mixed $before = '',
mixed $after = '',
mixed $post = 0,
mixed $css_class = 'post-edit-link'
) Displays the edit post link for post.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $text string | Optional. Anchor text. If null, default is 'Edit This'. Default null. |
| $before string | Optional. Display before edit link. Default empty. |
| $after string | Optional. Display after edit link. Default empty. |
| (int | | WP_Post) $post Optional. Post ID or post object. Default is the global `$post`. Required |
| $css_class string | Optional. Add custom class to link. Default 'post-edit-link'. |
Return Value
(void)
No return value description available.
Function Information
Since Version
1.0.0
Source File
wp-includes/link-template.php
Advertisement