aioseo_generate_descriptions_from_content

aioseo_generate_descriptions_from_content

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.7.7

apply_filters('aioseo_generate_descriptions_from_content') is found 1 times:

  • /app/Common/Meta/Description.php line 167
    		}
    
    		$description = $this->helpers->sanitize( $this->getPostTypeDescription( $post->post_type ), $post->ID, $default );
    
    		$generateDescriptions = apply_filters( 'aioseo_generate_descriptions_from_content', true, [ $post ] );
    		if ( ! $description && ! post_password_required( $post ) ) {
    			$description = $post->post_excerpt;
    			if (
    				$generateDescriptions &&
    				in_array( 'useContentForAutogeneratedDescriptions', aioseo()->internalOptions->deprecatedOptions, true ) &&
    				aioseo()->options->deprecated->searchAppearance->advanced->useContentForAutogeneratedDescriptions