aioseo_sitemap_post

aioseo_sitemap_post

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

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

apply_filters('aioseo_sitemap_post') is found 4 times:

  • /app/Common/Sitemap/Content.php line 262
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
                $entry['changefreq'] = aioseo()->sitemap->priority->frequency( 'homePage' );
                $entry['priority']   = aioseo()->sitemap->priority->priority( 'homePage' );
            }
     
            $entries[] = apply_filters( 'aioseo_sitemap_post', $entry, $post->ID, $postType, 'post' );
        }
     
        // We can't remove the post type here because other plugins rely on it.
        return apply_filters( 'aioseo_sitemap_posts', $entries, $postType );
    }
  • /app/Common/Sitemap/Content.php line 714
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
            'changefreq' => aioseo()->sitemap->priority->frequency( 'postTypes', false, $postType ),
            'priority'   => aioseo()->sitemap->priority->priority( 'postTypes', false, $postType ),
        ];
     
        $entries[] = apply_filters( 'aioseo_sitemap_post', $entry, $item->id, $postType );
    }
     
    $archiveUrl = BuddyPressIntegration::getComponentArchiveUrl( 'activity' );
    if (
        aioseo()->helpers->isUrl( $archiveUrl ) &&
        ! in_array( $postType, aioseo()->helpers->getNoindexedObjects( 'archives' ), true )
  • /app/Common/Sitemap/Content.php line 771
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
            'changefreq' => aioseo()->sitemap->priority->frequency( 'postTypes', false, $postType ),
            'priority'   => aioseo()->sitemap->priority->priority( 'postTypes', false, $postType ),
        ];
     
        $entries[] = apply_filters( 'aioseo_sitemap_post', $entry, $item->id, $postType );
    }
     
    $archiveUrl = BuddyPressIntegration::getComponentArchiveUrl( 'group' );
    if (
        aioseo()->helpers->isUrl( $archiveUrl ) &&
        ! in_array( $postType, aioseo()->helpers->getNoindexedObjects( 'archives' ), true )
  • /app/Common/Sitemap/Content.php line 826
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
            'changefreq' => aioseo()->sitemap->priority->frequency( 'postTypes', false, $postType ),
            'priority'   => aioseo()->sitemap->priority->priority( 'postTypes', false, $postType ),
        ];
     
        $entries[] = apply_filters( 'aioseo_sitemap_post', $entry, $item->id, $postType );
    }
     
    $archiveUrl = BuddyPressIntegration::getComponentArchiveUrl( 'member' );
    if (
        aioseo()->helpers->isUrl( $archiveUrl ) &&
        ! in_array( $postType, aioseo()->helpers->getNoindexedObjects( 'archives' ), true )

See this hook used in plugins: