Automattic\WooCommerce\Blocks\Domain\Services\OnboardingTasks

ReviewCheckoutTask::get_action_url()publicWC 1.0

Action URL.

Method of the class: ReviewCheckoutTask{}

No Hooks.

Return

String.

Usage

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

ReviewCheckoutTask::get_action_url() code WC 9.2.3

public function get_action_url() {
	$base_url = wc_current_theme_is_fse_theme() ? 'site-editor.php?postType=page&postId=' : 'post.php?action=edit&post=';
	$page_id  = $this->has_cart_block() ? wc_get_page_id( 'cart' ) : wc_get_page_id( 'checkout' );
	$focus    = $this->has_cart_block() ? 'cart' : 'checkout';

	return admin_url( $base_url . absint( $page_id ) . '&focus=' . $focus . '&canvas=edit' );
}