WP_Rewrite::__construct() WordPress Method
The WP_Rewrite::__construct() method initializes the class by setting up the default variables, including the $this->rewritecode and $this->rewritereplace arrays. It also calls the init() method, which sets up the $this->rules variable and adds the default rewrite rules.
WP_Rewrite::__construct() #
Constructor – Calls init(), which runs setup.
Source
File: wp-includes/class-wp-rewrite.php
public function __construct() {
$this->init();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |