aioseo_sitemap_additional_pages
aioseo_sitemap_additional_pages
Appears in: all-in-one-seo-pack.4.0.11, all-in-one-seo-pack.4.0.12, all-in-one-seo-pack.4.0.15, all-in-one-seo-pack.4.0.16, all-in-one-seo-pack.4.0.17, all-in-one-seo-pack.4.0.7, all-in-one-seo-pack.4.0.8, all-in-one-seo-pack.4.0.9, all-in-one-seo-pack.4.1.0.1, all-in-one-seo-pack.4.1.0.2, all-in-one-seo-pack.4.1.1, all-in-one-seo-pack.4.1.1.1, all-in-one-seo-pack.4.1.2.1, all-in-one-seo-pack.4.1.2.2, all-in-one-seo-pack.4.1.3.1, all-in-one-seo-pack.4.1.3.3, all-in-one-seo-pack.4.1.4.1, all-in-one-seo-pack.4.1.4.2, all-in-one-seo-pack.4.1.4.3, all-in-one-seo-pack.4.1.4.4, all-in-one-seo-pack.4.1.8, all-in-one-seo-pack.4.1.9.4, all-in-one-seo-pack.4.2.0, all-in-one-seo-pack.4.2.1.1, all-in-one-seo-pack.4.2.2, all-in-one-seo-pack.4.2.3.1, all-in-one-seo-pack.4.2.4, all-in-one-seo-pack.4.2.5.1, all-in-one-seo-pack.4.2.6.1, all-in-one-seo-pack.4.2.7.1, all-in-one-seo-pack.4.2.8, all-in-one-seo-pack.4.3.0, all-in-one-seo-pack.4.3.1.1, all-in-one-seo-pack.4.3.2, all-in-one-seo-pack.4.3.3, all-in-one-seo-pack.4.3.5.1, all-in-one-seo-pack.4.3.6.1, all-in-one-seo-pack.4.3.7, all-in-one-seo-pack.4.3.8, all-in-one-seo-pack.4.4.0.1, all-in-one-seo-pack.4.4.2, all-in-one-seo-pack.4.4.4, all-in-one-seo-pack.4.4.5.1, all-in-one-seo-pack.4.4.6, all-in-one-seo-pack.4.4.8, all-in-one-seo-pack.4.4.9.1, all-in-one-seo-pack.4.4.9.2, all-in-one-seo-pack.4.5.0, all-in-one-seo-pack.4.5.1.1, all-in-one-seo-pack.4.5.2.1, all-in-one-seo-pack.4.5.3.1, all-in-one-seo-pack.4.5.4, all-in-one-seo-pack.4.5.5, all-in-one-seo-pack.4.5.6, all-in-one-seo-pack.4.5.7.1, all-in-one-seo-pack.4.5.7.2, all-in-one-seo-pack.4.5.7.3, all-in-one-seo-pack.4.5.8, all-in-one-seo-pack.4.5.9.1, all-in-one-seo-pack.4.5.9.2, all-in-one-seo-pack.4.6.2, all-in-one-seo-pack.4.6.4, all-in-one-seo-pack.4.6.5, all-in-one-seo-pack.4.6.6, all-in-one-seo-pack.4.6.8.1, all-in-one-seo-pack.4.6.9.1, all-in-one-seo-pack.4.7.0, all-in-one-seo-pack.4.7.1.1, all-in-one-seo-pack.4.7.3, all-in-one-seo-pack.4.7.4.2
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.4.7.4.2apply_filters('aioseo_sitemap_additional_pages') is found 4 times:
- /app/Common/Sitemap/Content.php line 438
array_unshift( $entries, $homepageEntry ); } if ( aioseo()->options->sitemap->general->additionalPages->enable ) { $entries = apply_filters( 'aioseo_sitemap_additional_pages', $entries ); } if ( empty( $entries ) ) { return []; }
- /app/Common/Sitemap/File.php line 77
} } $postTypes = aioseo()->sitemap->helpers->includedPostTypes(); $additionalPages = apply_filters( 'aioseo_sitemap_additional_pages', $additionalPages ); if ( 'posts' === get_option( 'show_on_front' ) || count( $additionalPages ) || ! in_array( 'page', $postTypes, true ) ) {
- /app/Common/Sitemap/Helpers.php line 129
$pages[] = strtotime( $additionalPage->lastModified ); } if ( empty( $pages ) ) { $additionalPages = apply_filters( 'aioseo_sitemap_additional_pages', [] ); if ( empty( $additionalPages ) ) { return false; } $lastModified = 0; $timestamp = time();
- /app/Common/Sitemap/Root.php line 176
]; } if ( aioseo()->options->sitemap->general->additionalPages->enable ) { $entries = apply_filters( 'aioseo_sitemap_additional_pages', $entries ); } $postTypes = aioseo()->sitemap->helpers->includedPostTypes(); $shouldIncludeHomepage = 'posts' === get_option( 'show_on_front' ) || ! in_array( 'page', $postTypes, true ); if ( ! $shouldIncludeHomepage && ! count( $entries ) ) { return [];