get_edit_term_link

FUNCTION wp-includes\link-template.php (ligne 1058) github
Filters the anchor tag for the edit link for a tag (or term in another taxonomy).

Paramètres

Entrée :
$term, $taxonomy = '', $object_type = ''
Sortie :
@param string $link The anchor tag for the edit link.
@param int|WP_Term|object $term        The ID or term object whose edit link will be retrieved.
@param string             $taxonomy    Optional. Taxonomy. Defaults to the taxonomy of the term identified
@param string             $object_type Optional. The object type. Used to highlight the proper post type
@return string|null The edit term link URL for the given term, or null on failure.

Utilisation

// Utilisation de la fonction get_edit_term_link
$result = get_edit_term_link($term, $taxonomy = '', $object_type = '');

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

Actualités

Chargement des actualités...