body_tag

Body-related functions

Summary

body_tag(array $attributes = Array)

Returns a <body> tag with attributes.

Attributes can be filtered using the ‘body_tag_attributes’ filter.

Parameters:
  • $attributes (array) –
Returns:

string An HTML <body> tag with attributes and their values.

Usage

Examples

See Also