{"id":21602081,"url":"https://github.com/wpbp/cronplus","last_synced_at":"2026-03-10T16:19:12.082Z","repository":{"id":44839792,"uuid":"42681138","full_name":"WPBP/CronPlus","owner":"WPBP","description":"Add and remove Cron job in WordPress easily!","archived":false,"fork":false,"pushed_at":"2023-04-25T12:37:24.000Z","size":31,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T00:54:58.515Z","etag":null,"topics":["wordpress","wordpress-php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WPBP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-09-17T20:48:53.000Z","updated_at":"2024-10-08T14:33:45.000Z","dependencies_parsed_at":"2022-08-28T04:40:19.202Z","dependency_job_id":null,"html_url":"https://github.com/WPBP/CronPlus","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.0714285714285714,"last_synced_commit":"9c5e0f82d35713c337643bf938d4356bce56536b"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCronPlus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCronPlus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCronPlus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FCronPlus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WPBP","download_url":"https://codeload.github.com/WPBP/CronPlus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248329640,"owners_count":21085573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wordpress-php-library"],"created_at":"2024-11-24T19:11:56.885Z","updated_at":"2026-03-10T16:19:12.042Z","avatar_url":"https://github.com/WPBP.png","language":"PHP","readme":"# CronPlus\n[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)\n![Downloads](https://img.shields.io/packagist/dt/wpbp/cronplus.svg) \n\nAdd and remove Cron job in WordPress easily!\n\n## Install\n\n`composer require wpbp/cronplus:dev-master`\n\n[composer-php52](https://github.com/composer-php52/composer-php52) supported.\n\n## Example\n\n```php\n$args = array(\n    // to execute at a specific time based on recurrence\n    'time' =\u003e time(), // not mandatory, will use the current time\n    // hourly, daily, twicedaily, weekly, monthly or timestamp for single event\n    'recurrence' =\u003e 'hourly',\n    // schedule (specific interval) or single (at the time specified)\n    'schedule' =\u003e 'schedule',\n    // Name of the Cron job used internally\n    'name' =\u003e 'cronplusexample',\n    // Callback to execute when the cron job is launched\n    'cb' =\u003e 'cronplus_example',\n    // Multisite support disabled by default\n    'multisite'=\u003e false,\n    // Used on deactivation for register_deactivation_hook to cleanup\n    'plugin_root_file'=\u003e '',\n    // When the event is scheduled is also executed \n    'run_on_creation'=\u003e false,\n    // Args passed to the hook executed during the cron\n    'args' =\u003e array( get_the_ID() )\n);\n\nfunction cronplus_example( $id ) {\n\techo $id;\n}\n\n$cronplus = new CronPlus( $args );\n// Schedule the event\n$cronplus-\u003eschedule_event();\n// Remove the event by the schedule\n$cronplus-\u003eclear_schedule_by_hook();\n// Jump the scheduled event\n$cronplus-\u003eunschedule_specific_event();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbp%2Fcronplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpbp%2Fcronplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbp%2Fcronplus/lists"}