This filter can be used to control whether All in One SEO can autogenerate the description based on the post content.

Arguments (1)

  1. $enabled (boolean) – Whether All in One SEO can use the post content. Defaults to true.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is prevented from using the post content to autogenerate descriptions.

add_filter( 'aioseo_generate_descriptions_from_content', 'aioseo_disable_autogenerate_from_content' );

function aioseo_disable_autogenerate_from_content( $enabled ) {
   return false;