Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
plugins
/
google-listings-and-ads
/
src
/
Jobs
:
ActionSchedulerJobInterface.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare( strict_types=1 ); namespace Automattic\WooCommerce\GoogleListingsAndAds\Jobs; defined( 'ABSPATH' ) || exit; /** * Interface ActionSchedulerJobInterface * * @package Automattic\WooCommerce\GoogleListingsAndAds\Jobs */ interface ActionSchedulerJobInterface extends JobInterface { /** * Get the hook name for the "process item" action. * * This method is required by the job monitor. * * @return string */ public function get_process_item_hook(): string; /** * Can the job be scheduled. * * @param array|null $args * * @return bool Returns true if the job can be scheduled. */ public function can_schedule( $args = [] ): bool; /** * Schedule the job. * * @param array $args */ public function schedule( array $args = [] ); }