Private Access Private Access
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Summery Summery
Mark up a theme header.
Syntax Syntax
Parameters Parameters
- $header
-
(Required) Theme header. Name, Description, Author, Version, ThemeURI, AuthorURI, Status, Tags.
- $value
-
(Required) Value to mark up. An array for Tags header, string otherwise.
- $translate
-
(Required) Whether the header has been translated.
Return Return
(string) Value, marked up.
Source Source
File: wp-includes/class-wp-theme.php
break; case 'Description': $value = wptexturize( $value ); break; case 'Author': if ( $this->get( 'AuthorURI' ) ) { $value = sprintf( '<a href="%1$s">%2$s</a>', $this->display( 'AuthorURI', true, $translate ), $value ); } elseif ( ! $value ) { $value = __( 'Anonymous' ); } break; case 'Tags': static $comma = null; if ( ! isset( $comma ) ) { /* translators: Used between list items, there is a space after the comma. */ $comma = __( ', ' ); } $value = implode( $comma, $value ); break; case 'ThemeURI': case 'AuthorURI': $value = esc_url( $value ); break; } return $value; } /** * Translate a theme header. * * @since 3.4.0 *
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |