WordPress template tags edit_ bookmark_ Link output edit links, need to be used in the loop main loop, if used outside the main loop, need to pass the link ID.
edit_bookmark_link( string $link = '', string $before = '', string $after = '', int $bookmark = null )
Function parameters
$link
String value, null by default
Anchor text for links
$before
String value, null by default
The string output before the link
$after
String value, null by default
The string output after the link
$bookmark
Integer type, default value: current link ID
Specify a link ID to output the edit link of the link.
Examples of function usage
<?php edit_bookmark_link('编辑链接', '<p>', '</p>'); ?>
Extended reading
edit_ bookmark_ The link() function is located in: WP includes / link- template.php
Related Tags:
- edit_ post_ link()
- edit_ comment_ link()
- edit_ tag_ link()