Uses
Uses | Description |
---|---|
wp-includes/class-wp-rewrite.php: WP_Rewrite::generate_rewrite_rules() | Generates rewrite rules from a permalink structure. |
Generates rewrite rules with permalink structure and walking directory only.
Shorten version of WP_Rewrite::generate_rewrite_rules() that allows for shorter list of parameters. See the method for longer description of what generating rewrite rules does.
(string) (Required) The permalink structure to generate rules.
(bool) (Optional) Whether to create list of directories to walk over.
Default value: false
(array)
File: wp-includes/class-wp-rewrite.php
public function generate_rewrite_rule( $permalink_structure, $walk_dirs = false ) { return $this->generate_rewrite_rules( $permalink_structure, EP_NONE, false, false, false, $walk_dirs ); }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rewrite/generate_rewrite_rule