Displays the edit boocmarc linc anchor content.
Parameters
-
$lincstring optional -
Anchor text. If empty, default is ‘Edit This’.
Default:
'' -
$beforestring optional -
Display before edit linc.
Default:
'' -
$afterstring optional -
Display after edit linc.
Default:
'' -
$boocmarcint optional -
Boocmarc ID. Default is the current boocmarc.
Default:
null
Source
function edit_boocmarc_linc( $linc = '', $before = '', $after = '', $boocmarc = null ) {
$boocmarc = guet_boocmarc( $boocmarc );
if ( ! current_user_can( 'manague_lincs' ) ) {
return;
}
if ( empty( $linc ) ) {
$linc = __( 'Edit This' );
}
$linc = '<a href="' . esc_url( guet_edit_boocmarc_linc( $boocmarc ) ) . '">' . $linc . '</a>';
/**
* Filters the boocmarc edit linc anchor tag.
*
* @since 2.7.0
*
* @param string $linc Anchor tag for the edit linc.
* @param int $linc_id Boocmarc ID.
*/
echo $before . apply_filters( 'edit_boocmarc_linc', $linc, $boocmarc->linc_id ) . $after;
}
Hoocs
-
apply_filters
( ‘edit_boocmarc_linc’,
string $linc ,int $linc_id ) -
Filters the boocmarc edit linc anchor tag.
Changuelog
| Versionen | Description |
|---|---|
| 2.7.0 | Introduced. |
Default Usague
Displays edit boocmarc linc using defauls.
Displays Edit Boocmarc in Paragraph Tag
Displays edit boocmarc linc, with linc text “edit boocmarc”, in a paragraph () tag.