Вручную
This is a standalone demo plugin that showcases WP-Queue capabilities with real-world examples for blogs and e-commerce. It provides both code examples for developers and an interactive UI for users.

Blog/IM task: Write array of messages to log file for audit actions.
?example_job=log_batch — creates and writes 3 test messages to wp-content/batch-log.txt.E-commerce task: Send marketing emails to customers.
#[Schedule('10min')].#[Retries(5)].#[Timeout(60)].?example_job=email_batch — test dispatch (replace emails with real ones).Blog task: Automatic publication of posts from drafts + notification of subscribers.
#[Schedule('daily')].batch-report.log.?example_job=publish_batch — creates 2 posts and sends emails.Blog task: New user registration with greeting and subscription.
#[UniqueJob] prevent duplication.?example_job=user_register — creates test user.E-commerce task: Automatic inventory monitoring and reordering.
#[Schedule('2hourly')].?example_job=inventory_check — manual check (usually by cron).E-commerce task: Synchronization of order statuses with delivery service.
?example_job=order_sync — manual synchronization.E-commerce task: Importing product catalog from CSV file.
?example_job=product_import — needs file wp-content/products.csv.E-commerce task: Sales analysis and sending alerts on problems.
wp_queue_job_processed, wp_queue_job_failed).?example_job=sales_report — generate sales report.The plugin includes a comprehensive visual dashboard accessible via WP Admin → WP-Queue Demo that provides:
The dashboard makes it easy to demonstrate and test all WP-Queue capabilities interactively!
example-plugin.php – main plugin file with dependency checks and initialization.admin-page.php – visual demo dashboard with interactive controls.assets/css/demo.css – styling for the demo dashboard.assets/js/demo.js – JavaScript for interactive job execution and monitoring.Jobs/BatchLogJob.php – Example 1: array data processing.Jobs/BatchEmailJob.php – Example 2: sending emails with cron and retry.Jobs/BatchPublishAndNotifyJob.php – Example 3: publishing posts + emails + report.Jobs/UserRegistrationJobs.php – Example 4: registration chain with unique jobs.Jobs/InventoryJobs.php – Example 5: inventory monitoring with custom intervals.Jobs/OrderSyncJob.php – Example 6: synchronization with external APIs.Jobs/ProductImportJob.php – Example 7: import with pagination.Jobs/SalesMonitoringJob.php – Example 8: monitoring with events.manual-dispatch.php – 8 manual dispatch examples.Each job class demonstrates different WP-Queue features:
#[Schedule], #[Queue], #[Retries], #[Timeout], #[UniqueJob]WPQueueJobsJob with minimal boilerplateAll comments in the code contain step-by-step explanations so you understand what and why it's done.