WPDev.one
Core Function
View Source on Trac ↗

the_title_attribute()

the_title_attribute( mixed $args = '' )

Sanitizes the current title when retrieving or displaying.

Parameters 1 required

Name / Type Description
mixed

(string | array) $args { Title attribute arguments. Optional.

Required

Return Value

((void)
| string) Void if 'echo' argument is true, the title attribute if 'echo' is false.

Function Information

Since Version
2.3.0
Source File
wp-includes/post-template.php
Advertisement