edit_post_link


edit_post_link ( $text = null, $before = '', $after = '', $id = 0, $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) $id Optional. Post ID or post object. Default is the global `$post`.
  • (string) $class Optional. Add custom class to link. Default 'post-edit-link'.
Defined at:
Change Log:
  • 4: .

Description

Displays the edit post link for post.

Related Functions

get_edit_post_link, next_post_link, next_posts_link, edit_tag_link, edit_term_link

Top Google Results

User discussions

wpseek mobile