• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyseventeen_edit_link() – Returns an accessibility-friendly link to edit a post or page.

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 12 of 12
  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>'
    );
  }
 

 View on GitHub View on Trac

Published: 8th April 2020 | Last updated: 9th June 2022

Primary Sidebar

Information

Function name: twentyseventeen_edit_link
Plugin ref: Twenty Seventeen
Version: 3.1
Sourcefile: inc/template-tags.php
File ref: inc/template-tags.php
Deprecated?: No
API Letters: E,L,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.28
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites