承接 thefrosty/wp-missed-schedule-publisher 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thefrosty/wp-missed-schedule-publisher

最新稳定版本:1.0.1

Composer 安装命令:

composer require thefrosty/wp-missed-schedule-publisher

包简介

Catches scheduled posts that have been missed and publishes them.

README 文档

README

PHP from Packagist Latest Stable Version Total Downloads License Build Status

Catches scheduled posts that have been missed and publishes them.

Package Installation (via Composer)

$ composer require thefrosty/wp-missed-schedule-publisher:^1.0

Integrations

Supports the following 3rd party plugin(s):

  1. TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher::ACTION_SCHEDULE_MISSED
  2. TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher::ACTION_SCHEDULE_PUBLISH
  • How to use actions
    • When a one or more posts have missed their schedule. Example:
       use TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher;
       add_action(MissedSchedulePublisher::ACTION_SCHEDULE_MISSED, static function(array $post_ids): void {
             // Do something with the post ID's array.
       });
    • When a post that missed its schedule is published. Example:
       use TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher;
       add_action(MissedSchedulePublisher::ACTION_SCHEDULE_PUBLISH, static function(int $post_id,  false | string $old_status): void {
             $new_status = get_post_status($post_id);
      
             // Maybe there was an issue publishing?
             if ($old_status === $new_status) {
                 return;
             }
       
             // Do something with the $post_id. 
       });
  • Filters
  1. TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher::FILTER_BATCH_LIMIT
  2. TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher::FILTER_FREQUENCY
  • How to use filters
    • Change the allowed batch (query) limit count. Example:
       use TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher;
       // Lower it to only 10 (defaults to 20) 
       add_filter(MissedSchedulePublisher::FILTER_BATCH_LIMIT, static fn(): int => 10);
    • Change the frequency of the check (in seconds). Example:
       use TheFrosty\WpMissedSchedulePublisher\WpAdmin\MissedSchedulePublisher;
       // Every hour (defaults to 15 minutes) 
       add_filter(MissedSchedulePublisher::FILTER_FREQUENCY, static fn(): int => \HOUR_IN_SECONDS);
       // Every minute (defaults to 15 minutes) 
       add_filter(MissedSchedulePublisher::FILTER_FREQUENCY, static fn(): int => \MINUTE_IN_SECONDS);

统计信息

  • 总下载量: 616
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固