Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Payments::get_action_url()publicWC 1.0

The task action URL.

Empty string means the task linking will be handled by the JS logic.

Метод класса: Payments{}

Хуков нет.

Возвращает

Строку.

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

$Payments = new Payments();
$Payments->get_action_url();

Код Payments::get_action_url() WC 9.7.1

public function get_action_url() {
	// If the React-based Payments settings page is enabled, we want the task to link to the Payments Settings page.
	if ( Features::is_enabled( 'reactify-classic-payments-settings' ) ) {
		return admin_url( 'admin.php?page=wc-settings&tab=checkout' );
	}

	// Otherwise, we want the task behavior to remain unchanged (link to the Payments task page).
	return '';
}