Method |
Description |
|
__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 |
|