WordPress.org

Make WordPress Core

Changeset 34528


Ignore:
Timestamp:
09/25/2015 02:37:29 AM (4 years ago)
Author:
wonderboymusic
Message:

Links: in get_adjacent_post(), add a "get_{$adjacent}_post_excluded_terms" filter.

Props rmccue, Japh, MikeHansenMe.
Fixes #9571.

File:
1 edited

Legend:

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

    r34496 r34528  
    16311631
    16321632    /**
     1633     * Filter the excluded term ids
     1634     *
     1635     * The dynamic portion of the hook name, `$adjacent`, refers to the type
     1636     * of adjacency, 'next' or 'previous'.
     1637     *
     1638     * @since 4.4.0
     1639     *
     1640     * @param string $excluded_terms Array of excluded term IDs.
     1641     */
     1642    $excluded_terms = apply_filters( "get_{$adjacent}_post_excluded_terms", $excluded_terms );
     1643
     1644    /**
    16331645     * Filter the JOIN clause in the SQL for an adjacent post query.
    16341646     *
Note: See TracChangeset for help on using the changeset viewer.