PHP 클래스 Admin_Apple_Meta_Boxes, apple-news

부터: 0.9.0
상속: extends Apple_News
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $settings = null ) Constructor.
add_meta_boxes ( WP_Post $post ) Add the Apple News meta boxes
build_sections_field ( array $sections, integer $post_id ) Builds the sections dropdown
do_publish ( integer $post_id, WP_Post $post ) Check for a publish action from the meta box.
publish_meta_box ( WP_Post $post ) Add the Apple News publish meta box
register_assets ( string $hook ) Registers assets used by meta boxes.
save_post_meta ( integer $post_id ) Saves the Apple News meta fields associated with a post
section_is_checked ( array $sections, integer $section_id, integer $is_default ) Determine if a section is checked

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $settings = null )

add_meta_boxes() 공개 메소드

Add the Apple News meta boxes
부터: 0.9.0
public add_meta_boxes ( WP_Post $post )
$post WP_Post

build_sections_field() 공개 정적인 메소드

Builds the sections dropdown
public static build_sections_field ( array $sections, integer $post_id )
$sections array
$post_id integer

do_publish() 공개 메소드

Check for a publish action from the meta box.
부터: 0.9.0
public do_publish ( integer $post_id, WP_Post $post )
$post_id integer
$post WP_Post

publish_meta_box() 공개 메소드

Add the Apple News publish meta box
부터: 0.9.0
public publish_meta_box ( WP_Post $post )
$post WP_Post

register_assets() 공개 메소드

Registers assets used by meta boxes.
public register_assets ( string $hook )
$hook string

save_post_meta() 공개 정적인 메소드

Saves the Apple News meta fields associated with a post
public static save_post_meta ( integer $post_id )
$post_id integer

section_is_checked() 공개 정적인 메소드

Determine if a section is checked
public static section_is_checked ( array $sections, integer $section_id, integer $is_default )
$sections array
$section_id integer
$is_default integer