Filters the post edit link.
$text = null, $before = '', $after = '', $post = 0, $css_class = 'post-edit-link'
Sortie :
@param string $link The edit link. @param int $post_id Post ID. @param string $context The link context. If set to 'display' then ampersands @param string $text Optional. Anchor text. If null, default is 'Edit This'. Default null. @param string $before Optional. Display before edit link. Default empty. @param string $after Optional. Display after edit link. Default empty. @param int|WP_Post $post Optional. Post ID or post object. Default is the global `$post`. @param string $css_class Optional. Add custom class to link. Default 'post-edit-link'.
// Utilisation de la fonction edit_post_link
$result = edit_post_link($text = null, $before = '', $after = '', $post = 0, $css_class = 'post-edit-link');
if ($result) {
// Votre logique ici
}
Chargement des actualités...