edit_term_link

FUNCTION wp-includes\link-template.php (ligne 1111) github
Filters the edit link for a term.

Paramètres

Entrée :
$link = '', $before = '', $after = '', $term = null, $display = true
Sortie :
@param string $location    The edit link.
@param int    $term_id     Term ID.
@param string $taxonomy    Taxonomy name.
@param string $object_type The object type.
@param string           $link    Optional. Anchor text. If empty, default is 'Edit This'. Default empty.
@param string           $before  Optional. Display before edit link. Default empty.
@param string           $after   Optional. Display after edit link. Default empty.
@param int|WP_Term|null $term    Optional. Term ID or object. If null, the queried object will be inspected. Default null.
@param bool             $display Optional. Whether or not to echo the return. Default true.
@return string|void HTML content.

Utilisation

// Utilisation de la fonction edit_term_link
$result = edit_term_link($link = '', $before = '', $after = '', $term = null, $display = true);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...