edit_post_link
edit_post_link ( $text = null, $before = '', $after = '', $post = 0, $css_class = 'post-edit-link' )
Parameters:- (string) text Optional. Anchor text. If null, default is 'Edit This'. Default null.
- (string) before Optional. Display before edit link. Default empty.
- (string) after Optional. Display after edit link. Default empty.
- (int|WP_Post) post Optional. Post ID or post object. Default is the global `$post`.
- (string) css_class Optional. Add custom class to link. Default 'post-edit-link'.
Defined at:Change Log: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Displays the edit post link for post.