Method | Description | |
---|---|---|
__construct ( $settings ) | Constructor. | |
action_query_params ( string $action, string $url ) : string | Helps build query params for each row action. | |
admin_page ( ) | Decide which template to load for the Apple News admin page | |
export_action ( integer $id ) | Handles an export action. | |
namespace_action ( string $action ) : string | Adds a namespace to all actions | |
page_router ( ) : mixed | Sets up all pages used in the plugin's admin page. Associate each route with an action. Actions are methods that end with "_action" and must perform a task and output HTML with the result. | |
setup_admin_page ( ) | Sets up the admin page. | |
setup_assets ( string $hook ) | Sets up admin assets. | |
show_post_list_action ( ) | Shows the list of articles available for publishing to Apple News. |
Method | Description | |
---|---|---|
delete_action ( integer $id ) | Handles a delete from Apple News action. | |
do_redirect ( ) | Performs the redirect after an action is complete. | |
download_json ( string $json, integer $id ) | Downloads the JSON file for troubleshooting purposes. | |
get_setting ( string $name ) : mixed | Gets a setting by name which was loaded from WordPress options. | |
notice_error ( string $message ) | Shows an error message. | |
notice_success ( string $message ) | Shows a success message. | |
push_action ( integer $id ) | Handles a push to Apple News action. |
public admin_page ( ) |
public export_action ( integer $id ) | ||
$id | integer |
public static namespace_action ( string $action ) : string | ||
$action | string | |
return | string |
public page_router ( ) : mixed | ||
return | mixed |
public setup_assets ( string $hook ) | ||
$hook | string |
public show_post_list_action ( ) |