WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

OnboardingTasks::add_onboarding_tax_notice_admin_script() public WC 1.0

Adds a notice to return to the task list when the save button is clicked on tax settings pages.

{} It's a method of the class: OnboardingTasks{}

No Hooks.

Return

null. Nothing.

Usage

$result = OnboardingTasks::add_onboarding_tax_notice_admin_script();

Code of OnboardingTasks::add_onboarding_tax_notice_admin_script() WC 5.3.0

<?php
public static function add_onboarding_tax_notice_admin_script() {
	$page = isset( $_GET['page'] ) ? $_GET['page'] : ''; // phpcs:ignore csrf ok, sanitization ok.
	$tab  = isset( $_GET['tab'] ) ? $_GET['tab'] : ''; // phpcs:ignore csrf ok, sanitization ok.

	if (
		'wc-settings' === $page &&
		'tax' === $tab &&
		'tax' === self::get_active_task() &&
		! self::is_active_task_complete()
	) {
		$script_assets_filename = Loader::get_script_asset_filename( 'wp-admin-scripts', 'onboarding-tax-notice' );
		$script_assets          = require WC_ADMIN_ABSPATH . WC_ADMIN_DIST_JS_FOLDER . 'wp-admin-scripts/' . $script_assets_filename;

		wp_enqueue_script(
			'onboarding-tax-notice',
			Loader::get_url( 'wp-admin-scripts/onboarding-tax-notice', 'js' ),
			array_merge( array( WC_ADMIN_APP ), $script_assets ['dependencies'] ),
			WC_ADMIN_VERSION_NUMBER,
			true
		);
	}
}