PHP 클래스 MSM_Sitemap_Builder_Cron, vip-mu-plugins-public

파일 보기 프로젝트 열기: Automattic/vip-mu-plugins-public 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

action_generate() 공개 정적인 메소드

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

action_generate_from_latest() 공개 정적인 메소드

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

action_halt() 공개 정적인 메소드

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

action_reset_data() 공개 정적인 메소드

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

add_actions() 공개 정적인 메소드

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

find_next_day_to_process() 공개 정적인 메소드

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
리턴 void,

generate_full_sitemap() 공개 정적인 메소드

Generate full sitemap
public static generate_full_sitemap ( )

generate_sitemap_for_year() 공개 정적인 메소드

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

generate_sitemap_for_year_month() 공개 정적인 메소드

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() 공개 정적인 메소드

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

reset_sitemap_data() 공개 정적인 메소드

Reset sitemap options
public static reset_sitemap_data ( )

schedule_sitemap_update_for_year_month_date() 공개 정적인 메소드

public static schedule_sitemap_update_for_year_month_date ( $date, $time )

setup() 공개 정적인 메소드

public static setup ( )

sitemap_create_status() 공개 정적인 메소드

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.
리턴 string The status text.