woocommerce_admin_woopayments_onboarding_task_badge filter-hookWC 8.2.0

Filter WooPayments onboarding task badge.

Usage

add_filter( 'woocommerce_admin_woopayments_onboarding_task_badge', 'wp_kama_woocommerce_admin_woopayments_onboarding_task_badge_filter' );

/**
 * Function for `woocommerce_admin_woopayments_onboarding_task_badge` filter-hook.
 * 
 * @param string $badge Badge content.
 *
 * @return string
 */
function wp_kama_woocommerce_admin_woopayments_onboarding_task_badge_filter( $badge ){

	// filter...
	return $badge;
}
$badge(string)
Badge content.

Changelog

Since 8.2.0 Introduced.

Where the hook is called

WooCommercePayments::get_badge()
woocommerce_admin_woopayments_onboarding_task_badge
woocommerce/src/Admin/Features/OnboardingTasks/Tasks/WooCommercePayments.php 52
return apply_filters( 'woocommerce_admin_woopayments_onboarding_task_badge', '' );

Where the hook is used in WooCommerce

woocommerce/src/Internal/Admin/WcPayWelcomePage.php 49
add_filter( 'woocommerce_admin_woopayments_onboarding_task_badge', [ $this, 'onboarding_task_badge' ] );