WordPress.org

Make WordPress Core

Changeset 35510


Ignore:
Timestamp:
11/04/2015 06:28:31 PM (3 years ago)
Author:
DrewAPicture
Message:

Pages: Introduce the get_page_uri filter, which makes it possible to manipulate a given page's URI before it's returned from the like-named get_page_uri().

Props tanner-m for the initial patch.
Fixes #15963.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-functions.php

    r35503 r35510  
    42894289    }
    42904290
    4291     return $uri;
     4291    /**
     4292     * Filter the URI for a page.
     4293     *
     4294     * @since 4.4.0
     4295     *
     4296     * @param string  $uri  Page URI.
     4297     * @param WP_Post $page Page object.
     4298     */
     4299    return apply_filters( 'get_page_uri', $uri, $page );
    42924300}
    42934301
Note: See TracChangeset for help on using the changeset viewer.