WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

ActionScheduler_ActionFactory::get_stored_action() public WC 1.0

{} Это метод класса: ActionScheduler_ActionFactory{}

Возвращает

ActionScheduler_Action. An instance of the stored action

Использование

$ActionScheduler_ActionFactory = new ActionScheduler_ActionFactory();
$ActionScheduler_ActionFactory->get_stored_action( $status, $hook, $args, $schedule, $group );
$status(строка) (обязательный)
The action's status in the data store
$hook(строка) (обязательный)
The hook to trigger when this action runs
$args(массив)
Args to pass to callbacks when the hook is triggered
По умолчанию: array()
$schedule(ActionScheduler_Schedule)
The action's schedule
По умолчанию: null
$group(строка)
A group to put the action in
По умолчанию: ''

Код ActionScheduler_ActionFactory::get_stored_action() WC 5.8.0

public function get_stored_action( $status, $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' ) {

	switch ( $status ) {
		case ActionScheduler_Store::STATUS_PENDING :
			$action_class = 'ActionScheduler_Action';
			break;
		case ActionScheduler_Store::STATUS_CANCELED :
			$action_class = 'ActionScheduler_CanceledAction';
			if ( ! is_null( $schedule ) && ! is_a( $schedule, 'ActionScheduler_CanceledSchedule' ) && ! is_a( $schedule, 'ActionScheduler_NullSchedule' ) ) {
				$schedule = new ActionScheduler_CanceledSchedule( $schedule->get_date() );
			}
			break;
		default :
			$action_class = 'ActionScheduler_FinishedAction';
			break;
	}

	$action_class = apply_filters( 'action_scheduler_stored_action_class', $action_class, $status, $hook, $args, $schedule, $group );

	$action = new $action_class( $hook, $args, $schedule, $group );

	/**
	 * Allow 3rd party code to change the instantiated action for a given hook, args, schedule and group.
	 *
	 * @param ActionScheduler_Action $action The instantiated action.
	 * @param string $hook The instantiated action's hook.
	 * @param array $args The instantiated action's args.
	 * @param ActionScheduler_Schedule $schedule The instantiated action's schedule.
	 * @param string $group The instantiated action's group.
	 */
	return apply_filters( 'action_scheduler_stored_action_instance', $action, $hook, $args, $schedule, $group );
}