page_rewrite_rules

page_rewrite_rules

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('page_rewrite_rules') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1402
    		 * @since 1.5.0
    		 *
    		 * @param string[] $page_rewrite Array of rewrite rules for the "page" post type, keyed by their regex pattern.
    		 */
    		$page_rewrite = apply_filters( 'page_rewrite_rules', $page_rewrite );
    
    		// Extra permastructs.
    		foreach ( $this->extra_permastructs as $permastructname => $struct ) {
    			if ( is_array( $struct ) ) {
    				if ( count( $struct ) === 2 ) {
    					$rules = $this->generate_rewrite_rules( $struct[0], $struct[1] );