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.8.1.1

apply_filters('aioseo_generate_descriptions_from_content') is found 1 times:

  • /app/Common/Meta/Description.php line 167
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    }
     
    $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