Method |
Description |
|
add_admin_scripts ( ) |
|
|
ajax_get_sitemap_counts ( ) |
|
|
build_individual_sitemap_xml ( $year, $month, $day ) |
Get XML for individual day |
|
build_root_sitemap_xml ( ) |
Build Root sitemap XML - currently all days |
|
build_xml ( $request = [] ) |
Build XML for output to clean up the template file |
|
check_year_has_posts ( ) : int[] |
Get every year that has valid posts in a range |
|
count_sitemaps ( ) : integer |
Counts the number of sitemaps that have been generated. |
|
create_post_type ( ) |
Register our CPT |
|
date_range_has_posts ( string $start_date, string $end_date ) : integer | false |
Does a current date range have posts? |
|
delete_sitemap_by_id ( $sitemap_id ) |
|
|
delete_sitemap_for_date ( $sitemap_date ) |
|
|
disable_canonical_redirects_for_sitemap_xml ( string $redirect_url, string $requested_url ) : string |
Disable canonical redirects for the sitemap file |
|
find_valid_days ( $year ) |
|
|
generate_sitemap_for_date ( string $sitemap_date ) |
Generate sitemap for a date; this is where XML is rendered. |
|
get_date_stamp ( integer $year, integer $month, integer $day ) : string |
Get properly formatted data stamp from year, month, and day |
|
get_indexed_url_count ( $year, $month, $day ) |
Gets the number of URLs indexed for the given sitemap. |
|
get_last_modified_posts ( ) : object[] |
Get posts modified within the last hour |
|
get_post_dates ( object[] $posts ) : string[] |
Get dates for an array of posts |
|
get_post_ids_for_date ( string $sitemap_date, $limit = 500 ) : array |
Get a list of support post_type IDs for a given date |
|
get_post_year_range ( ) : int[] |
Return range of years for posts in the database |
|
get_recent_sitemap_url_counts ( integer $n = 7 ) : array |
Returns the $n most recent sitemap indexed url counts. |
|
get_sitemap_post_id ( $year, $month, $day ) |
|
|
get_supported_post_types ( ) |
|
|
get_total_indexed_url_count ( ) : integer |
Gets the current number of URLs indexed by msm-sitemap accross all sitemaps. |
|
is_blog_public ( ) |
|
|
load_sitemap_template ( $template ) |
Trigger rendering of the actual sitemap |
|
metro_sitemap_menu ( ) |
Register admin menu for sitemap |
|
render_sitemap_options_page ( ) |
Render admin options page |
|
robots_txt ( $output, $public ) |
Add entry to the bottom of robots.txt |
|
setup ( ) |
Register actions for our hook |
|
show_action_message ( str $message, $level = 'notice' ) |
Displays a notice, error or warning to the user |
|
sitemap_15_min_cron_interval ( array[] $schedules ) : array[] |
Register 15 minute cron interval for latest articles |
|
sitemap_init ( ) |
Register endpoint for sitemap and other hooks |
|
sitemap_init_cron ( ) |
Add cron jobs required to generate these sitemaps |
|
update_sitemap_from_modified_posts ( ) |
Update the sitemap with changes from recently modified posts |
|