generate_rewrite_rules WordPress Action Hook

The generate_rewrite_rules hook is used to generate the rewrite rules used by WordPress.

do_action_ref_array( 'generate_rewrite_rules', WP_Rewrite $wp_rewrite ) #

Fires after the rewrite rules are generated.


Parameters

$wp_rewrite

(WP_Rewrite)Current WP_Rewrite instance (passed by reference).


Top ↑

More Information

Triggers after all rewrite rules have been created. The rewrite object is passed as argument by reference.


Top ↑

Source

File: wp-includes/class-wp-rewrite.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.