the_title_attribute ( $args = '' )

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


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, wp_filter_oembed_iframe_title_attribute

Top Google Results

User discussions

wpseek mobile