aioseo_description_include_custom_fields

aioseo_description_include_custom_fields

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_description_include_custom_fields') is found 2 times:

  • /app/Common/Traits/Helpers/Vue.php line 289
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    'permalink'                      => get_permalink( $postId ),
    'editlink'                       => aioseo()->helpers->getPostEditLink( $postId ),
    'title'                          => ! empty( $post->title ) ? $post->title : aioseo()->meta->title->getPostTypeTitle( $postTypeObj->name ),
    'description'                    => ! empty( $post->description ) ? $post->description : aioseo()->meta->description->getPostTypeDescription( $postTypeObj->name ),
    'descriptionIncludeCustomFields' => apply_filters( 'aioseo_description_include_custom_fields', true, $post ),
    'keywords'                       => ! empty( $post->keywords ) ? $post->keywords : [],
    'keyphrases'                     => Models\Post::getKeyphrasesDefaults( $post->keyphrases ),
    'page_analysis'                  => Models\Post::getPageAnalysisDefaults( $post->page_analysis ),
    'loading'                        => [
        'focus'      => false,
        'additional' => [],
  • /app/Common/Traits/Helpers/WpContext.php line 297
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
        $postContent = is_string( $postContent ) ? $postContent : '';
     
        $content[ $post->ID ] = $this->theContent( $postContent );
     
        if ( apply_filters( 'aioseo_description_include_custom_fields', true, $post ) ) {
            $content[ $post->ID ] .= $this->theContent( $this->getPostCustomFieldsContent( $post ) );
        }
     
        return $content[ $post->ID ];
    }