get_404_template() – Retrieve path of 404 template in current or parent template.

You appear to be a bot. Output may be restricted

Description

Retrieve path of 404 template in current or parent template.

The template hierarchy and template path are filterable via the $type_template_hierarchy and $type_template dynamic hooks, where $type is '404'.

Usage

$string = get_404_template();

Parameters

Returns

string Full path to 404 template file.

Source

File name: wordpress/wp-includes/template.php
Lines:

1 to 3 of 3
function get_404_template() {
  return get_query_template( '404' );
}
 

 View on GitHub View on Trac