首页 WordPress函数大全 edit_post_link()

edit_post_link()

2020-05-01 / 5428阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

edit_post_link( string $text = null, string $before = '', string $after = '', int|WP_Post $id, string $class = 'post-edit-link' )

Displays the edit post link for post.

描述

参数

$text

(string)
(Optional)
Anchor text. If null, default is 'Edit This'.

Default value: null

$before

(string)
(Optional)
Display before edit link.

Default value: ''

$after

(string)
(Optional)
Display after edit link.

Default value: ''

$id

(int|WP_Post)
(Optional)
Post ID or post object. Default is the global $post.

$class

(string)
(Optional)
Add custom class to link.

Default value: 'post-edit-link'

大家谈论
    我的见解