You appear to be a bot. Output may be restricted
Description
Returns an accessibility-friendly link to edit a post or page.
This also gives us a little context about what exactly we're editing (post or page?) so that users understand a bit more where they are in terms of the template hierarchy and their content. Helpful when/if the single-page layout with multiple posts/pages shown gets confusing.
Usage
twentyseventeen_edit_link();
Parameters
Returns
void
Source
File name: twentyseventeen/inc/template-tags.php
Lines:
1 to 11 of 11
function twentyseventeen_edit_link() { edit_post_link( sprintf( /* translators: %s: Post title. Only visible to screen readers. */ __( 'Edit<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), get_the_title() ), '<span class="edit-link">', '</span>' ); }