1752publicfunctionadd_endpoint($name,$places,$query_var=true){1753global$wp;17541755// For backward compatibility, if null has explicitly been passed as `$query_var`, assume `true`.1756if(true===$query_var||null===$query_var){1757$query_var=$name;1758}1759$this->endpoints[]=array($places,$name,$query_var);17601761if($query_var){1762$wp->add_query_var($query_var);1763}1764}
History
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.3.0
Added support for skipping query var registration by passing false to $query_var.from the docblock
3.9.0
$query_var parameter added.from the docblock
2.1.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/class-wp-rewrite.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.