edit_tag_link

The timeline below displays how wordpress function edit_tag_link has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.3

/**
 * Displays or retrieves the edit link for a tag with formatting.
 *
 * @since 2.7.0
 *
 * @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 WP_Term $tag    Optional. Term object. If null, the queried object will be inspected.
 *                        Default null.
 */
function edit_tag_link($link = '', $before = '', $after = '', $tag = null)
{
    $link = edit_term_link($link, '', '', $tag, false);
    /**
     * Filters the anchor tag for the edit link for a tag (or term in another taxonomy).
     *
     * @since 2.7.0
     *
     * @param string $link The anchor tag for the edit link.
     */
    echo $before . apply_filters('edit_tag_link', $link) . $after;
}

WordPress Version: 4.6

/**
 * Displays or retrieves the edit link for a tag with formatting.
 *
 * @since 2.7.0
 *
 * @param string  $link   Optional. Anchor text. Default empty.
 * @param string  $before Optional. Display before edit link. Default empty.
 * @param string  $after  Optional. Display after edit link. Default empty.
 * @param WP_Term $tag    Optional. Term object. If null, the queried object will be inspected.
 *                        Default null.
 */
function edit_tag_link($link = '', $before = '', $after = '', $tag = null)
{
    $link = edit_term_link($link, '', '', $tag, false);
    /**
     * Filters the anchor tag for the edit link for a tag (or term in another taxonomy).
     *
     * @since 2.7.0
     *
     * @param string $link The anchor tag for the edit link.
     */
    echo $before . apply_filters('edit_tag_link', $link) . $after;
}

WordPress Version: 4.3

/**
 * Display or retrieve edit tag link with formatting.
 *
 * @since 2.7.0
 *
 * @param string $link   Optional. Anchor text.
 * @param string $before Optional. Display before edit link.
 * @param string $after  Optional. Display after edit link.
 * @param object $tag    Tag object.
 */
function edit_tag_link($link = '', $before = '', $after = '', $tag = null)
{
    $link = edit_term_link($link, '', '', $tag, false);
    /**
     * Filter the anchor tag for the edit link for a tag (or term in another taxonomy).
     *
     * @since 2.7.0
     *
     * @param string $link The anchor tag for the edit link.
     */
    echo $before . apply_filters('edit_tag_link', $link) . $after;
}

WordPress Version: 3.9

/**
 * Display or retrieve edit tag link with formatting.
 *
 * @since 2.7.0
 *
 * @param string $link Optional. Anchor text.
 * @param string $before Optional. Display before edit link.
 * @param string $after Optional. Display after edit link.
 * @param object $tag Tag object.
 * @return string HTML content.
 */
function edit_tag_link($link = '', $before = '', $after = '', $tag = null)
{
    $link = edit_term_link($link, '', '', $tag, false);
    /**
     * Filter the anchor tag for the edit link for a tag (or term in another taxonomy).
     *
     * @since 2.7.0
     *
     * @param string $link The anchor tag for the edit link.
     */
    echo $before . apply_filters('edit_tag_link', $link) . $after;
}

WordPress Version: 3.7

/**
 * Display or retrieve edit tag link with formatting.
 *
 * @since 2.7.0
 *
 * @param string $link Optional. Anchor text.
 * @param string $before Optional. Display before edit link.
 * @param string $after Optional. Display after edit link.
 * @param object $tag Tag object.
 * @return string HTML content.
 */
function edit_tag_link($link = '', $before = '', $after = '', $tag = null)
{
    $link = edit_term_link($link, '', '', $tag, false);
    echo $before . apply_filters('edit_tag_link', $link) . $after;
}