ActionScheduler_wpPostStore::save_post_schedule()protectedWC 1.0

Save post schedule.

Method of the class: ActionScheduler_wpPostStore{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->save_post_schedule( $post_id, $schedule );
$post_id(int) (required)
Post ID of the scheduled action.
$schedule(string) (required)
Schedule to save.

ActionScheduler_wpPostStore::save_post_schedule() code WC 8.7.0

protected function save_post_schedule( $post_id, $schedule ) {
	update_post_meta( $post_id, self::SCHEDULE_META_KEY, $schedule );
}