PHP Class MSM_Sitemap_Builder_Cron, vip-mu-plugins-public

ファイルを表示 Open project: Automattic/vip-mu-plugins-public Class Usage Examples

Public Methods

Method Description
action_generate ( ) Generates full sitemaps for the site.
action_generate_from_latest ( ) Generates sitemaps from the latest posts.
action_halt ( ) Halts sitemap generation on the next cron run. Saves current position for resuming.
action_reset_data ( ) Resets sitemap data and prints out a message to the user.
add_actions ( array $actions ) : array Adds the builder cron actions to the sitemaps admin page.
find_next_day_to_process ( integer $year, integer $month, integer $day ) : void, Find the next day with posts to process
generate_full_sitemap ( ) Generate full sitemap
generate_sitemap_for_year ( mixed[] $args ) Generate sitemap for a given year
generate_sitemap_for_year_month ( mixed[] $args ) Generate sitemap for a given month in a given year
generate_sitemap_for_year_month_day ( mixed[] $args ) Generate sitemap for a given year, month, day
reset_sitemap_data ( ) Reset sitemap options
schedule_sitemap_update_for_year_month_date ( $date, $time )
setup ( )
sitemap_create_status ( string $status ) : string Adds the "Halting" sitemap create status as this status is specific to the builder cron.

Method Details

action_generate() public static method

Hooked into the msm_sitemap_actions-generate action.
public static action_generate ( )

action_generate_from_latest() public static method

Hooked into the msm_sitemap_actions-generate_from_latest action
public static action_generate_from_latest ( )

action_halt() public static method

Hooked into the msm_sitemap_actions-halt_generation action.
public static action_halt ( )

action_reset_data() public static method

Hooked into the msm_sitemap_actions-reset_sitemap_data action.
public static action_reset_data ( )

add_actions() public static method

Hooked into the msm_sitemap_actions filter.
public static add_actions ( array $actions ) : array
$actions array The actions to show on the admin page.
return array

find_next_day_to_process() public static method

Find the next day with posts to process
public static find_next_day_to_process ( integer $year, integer $month, integer $day ) : void,
$year integer
$month integer
$day integer
return void,

generate_full_sitemap() public static method

Generate full sitemap
public static generate_full_sitemap ( )

generate_sitemap_for_year() public static method

Generate sitemap for a given year
public static generate_sitemap_for_year ( mixed[] $args )
$args mixed[]

generate_sitemap_for_year_month() public static method

Generate sitemap for a given month in a given year
public static generate_sitemap_for_year_month ( mixed[] $args )
$args mixed[]

generate_sitemap_for_year_month_day() public static method

Generate sitemap for a given year, month, day
public static generate_sitemap_for_year_month_day ( mixed[] $args )
$args mixed[]

reset_sitemap_data() public static method

Reset sitemap options
public static reset_sitemap_data ( )

schedule_sitemap_update_for_year_month_date() public static method

public static schedule_sitemap_update_for_year_month_date ( $date, $time )

setup() public static method

public static setup ( )

sitemap_create_status() public static method

Hooked into the msm_sitemap_create_status filter.
public static sitemap_create_status ( string $status ) : string
$status string The status text to show the user on the admin page.
return string The status text.