Make WordPress Core


Ignore:
Timestamp:
08/23/2015 06:07:41 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add a description and example to the hook docs for the navigation_markup_template filter, introduced in [33714].

Since the value of the filter is passed through sprintf() it's important to note that any filtered output needs to contain the expected specifiers.

See #31315.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r33714 r33717  
    24272427     * Filter the navigation markup template.
    24282428     *
     2429     * Note: The filtered template HTML must contain specifiers for the navigation
     2430     * class (%1$s), the screen-reader-text value (%2$s), and placement of the
     2431     * navigation links (%3$s):
     2432     *
     2433     *     <nav class="navigation %1$s" role="navigation">
     2434     *         <h2 class="screen-reader-text">%2$s</h2>
     2435     *         <div class="nav-links">%3$s</div>
     2436     *     </nav>
     2437     *
    24292438     * @since 4.4.0
    24302439     *
    2431      * @param string $template The default template
    2432      * @param string $class The class passed by the calling function.
     2440     * @param string $template The default template.
     2441     * @param string $class    The class passed by the calling function.
    24332442     * @return string Navigation template.
    24342443     */
Note: See TracChangeset for help on using the changeset viewer.