-
Notifications
You must be signed in to change notification settings - Fork 6
Hooks—Template Parts
ucfwp_get_header_typeucfwp_get_header_markupucfwp_get_header_content_typeucfwp_get_header_content_markupucfwp_get_nav_typeucfwp_get_nav_markupucfwp_get_footer_typeucfwp_get_footer_markup
Returns the type of header to use for the given object. The value returned will represent an equivalent template part's name.
-
$header_typestringThe header type name
-
$objectmixedA queried object (e.g. WP_Post, WP_Term), or null
string: The header type name
Returns the markup fetched by the determined header template part. Useful for making header overrides without creating/modifying a header template part.
-
$markupstringThe header markup returned from the loaded template part
string: The header markup
Returns the header content type for the given object's header. The value returned will represent an equivalent template part's name.
-
$content_typestringThe content type name
-
$objectmixedA queried object (e.g. WP_Post, WP_Term), or null
string: The content type name
Returns the markup fetched by the determined header content template part. Useful for making header content overrides without creating/modifying a header content template part.
-
$markupstringThe header content markup returned from the loaded template part
string: The header content markup
Returns the nav type for the given object's header. The value returned will represent an equivalent template part's name.
-
$nav_typestringThe nav type name
string: The nav type name
Returns the markup fetched by the determined nav template part. Useful for making nav overrides without creating/modifying a nav template part.
-
$markupstringThe nav markup returned from the loaded template part
string: The nav markup
Returns the footer type for the given page's header. The value returned will represent an equivalent template part's name.
-
$footer_typestringThe content type name
-
$objectmixedA queried object (e.g. WP_Post, WP_Term), or null
string: The footer type name
Returns the markup fetched by the determined footer template part. Useful for making nav overrides without creating/modifying a footer template part.
-
$markupstringThe footer markup returned from the loaded template part
string: The footer markup