the_title_attribute


the_title_attribute ( $args = '' )

Parameters:
  • (string|array) $args { Title attribute arguments. Optional.
Returns:
  • (string|void) String when echo is false.
Defined at:

Description

Sanitize the current title when retrieving or displaying.

Works like the_title(), except the parameters can be in a string or an array. See the function for what can be override in the $args parameter.

The title before it is displayed will have the tags stripped and esc_attr() before it is passed to the user or displayed. The default as with the_title(), is to display the title.

Related Functions

the_title_rss, get_language_attributes, the_title, language_attributes, get_the_title_rss

Top Google Results

User discussions

wpseek mobile