Retrieves a registered template by its name.
Parameters
$template_name
stringrequired- Template name including namespace.
Source
public function get_registered( $template_name ) {
if ( ! $this->is_registered( $template_name ) ) {
return null;
}
return $this->registered_templates[ $template_name ];
}
Changelog
Version | Description |
---|---|
6.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.