WP_Theme::sanitize_header

Advertisement

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

Sanitize a theme header.

Syntax Syntax

WP_Theme::sanitize_header( string $header, string $value )

Parameters Parameters

$header

(string) (Required) Theme header. Accepts 'Name', 'Description', 'Author', 'Version', 'ThemeURI', 'AuthorURI', 'Status', 'Tags', 'RequiresWP', 'RequiresPHP'.

$value

(string) (Required) Value to sanitize.

Return Return

(string|array) An array for Tags header, string otherwise.

Source Source

File: wp-includes/class-wp-theme.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.4.0 Added support for Requires at least and Requires PHP headers.
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.