{ __( 'Example task card content.', 'plugin-domain' ) }
{ addTaskData.isComplete ? (
) : (
) }
);
};
/**
* Use the 'woocommerce_admin_onboarding_task_list' filter to add a task page.
*/
addFilter( 'woocommerce_admin_onboarding_task_list', 'plugin-domain', tasks => {
return [
...tasks,
{
key: 'example',
title: __( 'Example', 'plugin-domain' ),
content: __( 'This is an example task.', 'plugin-domain' ),
icon: 'info',
container: