WordPress.org

Make WordPress Core

Changeset 49976


Ignore:
Timestamp:
01/18/2021 12:05:06 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Introduce a filter paginate_links() output.

Props sabernhardt, audrasjb, re.ardestani.
Fixes #44018.

File:
1 edited

Legend:

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

    r49949 r49976  
    41124112
    41134113/**
    4114  * Retrieve paginated link for archive post pages.
     4114 * Retrieves paginated links for archive post pages.
    41154115 *
    41164116 * Technically, the function can be used to create paginated link list for any
     
    43584358    }
    43594359
     4360    /**
     4361     * Filters the HTML output of paginated links for archives.
     4362     *
     4363     * @since 5.7.0
     4364     *
     4365     * @param string $r    HTML output.
     4366     * @param array  $args An array of arguments. See paginate_links() for accepted arguments.
     4367     */
     4368    $r = apply_filters( 'paginate_links_output', $r, $args );
     4369
    43604370    return $r;
    43614371}
Note: See TracChangeset for help on using the changeset viewer.