aioseo_description

Purpose

This filter can be used to filter the description.

Arguments (1)

  1. $description (string) – The description.

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 description of each post.

add_filter( 'aioseo_description', 'aioseo_filter_description' );

function aioseo_filter_description( $description ) {
   if ( is_singular() ) {
      return $description . 'some additional description content here';
   }
   return $description;
}