PHP 클래스 WpGears\Cron\Client

상속: extends WpGears\Client
파일 보기 프로젝트 열기: 10up/wp-gears

공개 메소드들

메소드 설명
add ( string $hook, array $args = [], string $priority = 'normal' ) : boolean Adds the job to the WP Cron queue. It will be executed on the next WordPress request.
register ( ) : boolean The Cron Client has no initialization, just returns true.

메소드 상세

add() 공개 메소드

Adds the job to the WP Cron queue. It will be executed on the next WordPress request.
public add ( string $hook, array $args = [], string $priority = 'normal' ) : boolean
$hook string The action hook name for the job
$args array Optional arguments for the job
$priority string Ignored in WP-Cron
리턴 boolean Always true

register() 공개 메소드

The Cron Client has no initialization, just returns true.
public register ( ) : boolean
리턴 boolean Always true