WP Manifestindependent plugin directory
manifest / integrations / mdt-apple-news-auto-retry

Apple News Auto Retry

Auto retry pending Apple News articles

★ 0stars
0.1.6latest · 5 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mailonline/mdt-apple-news-auto-retry/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Sets up and manages automatic push retries for Apple News articles that were generated using the Publish to Apple News by Alley Interactive

Installation

Download the latest release and include it within your plugins folder and enable as normal. This plugin has a dependency on the Publish to Apple News plugin and will do nothing if it isn't also enabled on the same WordPress install.

This plugin has no settings within the Admin.

Hooks

Actions

mdt_an_auto_retry_push_success

do_action('mdt_an_auto_retry_push_success', int $post_id, string $share_url, int $attempt);

Hook in after a successful push retry to run custom logic

Parameters

$post_id (int) Post ID

$share_url (string) Apple News share url for $post_id

$attempt (int) Number of attempts made

mdt_an_auto_retry_push_failure

Hook in after a successful push retry to run custom logic

do_action('mdt_an_auto_retry_push_failure', int $post_id, string $error_message, int $attempt);

Parameters

$post_id (int) Post ID

$error_message (string) Error message

$attempt (int) Number of attempts made

Filters

mdt_an_auto_retry_should_schedule

Allows for preventing auto retry scheduling

apply_filters('mdt_an_auto_retry_should_schedule', bool $should, int $post_id);

Parameters

$should (bool) Whether to schedule or not (default: true)

$post_id (int) Post ID

mdt_an_auto_retry_schedule_interval

Adjust the auto retry interval

apply_filters('mdt_an_auto_retry_schedule_delay', int $interval;

Parameters

$interval (int) Time in seconds to schedule the future event for (default: 120)

Releases

7 releases.

Tag
Published
0.1.6 latest
Aug 17, 2021 5 years ago
Aug 16, 2021 5 years ago
Jul 19, 2021 5 years ago
Jul 13, 2021 5 years ago
Jul 13, 2021 5 years ago
Jul 12, 2021 5 years ago
Jul 12, 2021 5 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.