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

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

공개 메소드들

메소드 설명
add_hooks ( ) Set up assorted actions and filters used by this class.
do_migration ( ) : integer | null Do the bulk of the migration.
get_all_revisions ( ) : array Get all revisions of the Jetpack CSS CPT entry.
get_options ( integer $post_id = null ) : array Get the options stored for a given revision ID.
get_post ( ) : array | boolean | null | WP_Post Get the post used for legacy storage.
register_legacy_post_type ( ) Re-register the legacy CPT so we can play with the content already in the database.

메소드 상세

add_hooks() 공개 정적인 메소드

Set up assorted actions and filters used by this class.
public static add_hooks ( )

do_migration() 공개 정적인 메소드

Do the bulk of the migration.
public static do_migration ( ) : integer | null
리턴 integer | null

get_all_revisions() 공개 정적인 메소드

Get all revisions of the Jetpack CSS CPT entry.
public static get_all_revisions ( ) : array
리턴 array

get_options() 공개 정적인 메소드

Jetpack used to version the settings by storing them as meta on the revision.
public static get_options ( integer $post_id = null ) : array
$post_id integer Post ID.
리턴 array

get_post() 공개 정적인 메소드

Jetpack used to use a single post for all themes, just blanking it on theme switch. This gets that post.
public static get_post ( ) : array | boolean | null | WP_Post
리턴 array | boolean | null | WP_Post

register_legacy_post_type() 공개 정적인 메소드

Re-register the legacy CPT so we can play with the content already in the database.
public static register_legacy_post_type ( )