This filter can be used to filter the page title.

Arguments (1)

  1. $title (string) – The page title.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below, a specific string is appended to the title of each post.

add_filter( 'aioseo_title', 'aioseo_filter_title' );

function aioseo_filter_title( $title ) {
   if ( is_singular() ) {
      return $title . 'some additional title content here';
   return $title;