Automattic\WooCommerce\Admin\Features\OnboardingTasks
Task::is_task_actioned()
Check if a provided task ID has been actioned.
Method of the class: Task{}
No Hooks.
Return
true|false
.
Usage
$result = Task::is_task_actioned( $id );
- $id(string) (required)
- Task ID.
Task::is_task_actioned() Task::is task actioned code WC 9.7.1
public static function is_task_actioned( $id ) { $actioned = get_option( self::ACTIONED_OPTION, array() ); return in_array( $id, $actioned, true ); }