WordPress at Your Fingertips
function is not described

WC_Admin_Addons::get_in_app_purchase_url_params() public WC 1.0

Returns in-app-purchase URL params.

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

No Hooks.


null. Nothing.


$result = WC_Admin_Addons::get_in_app_purchase_url_params();

Code of WC_Admin_Addons::get_in_app_purchase_url_params() WC 5.9.0

public static function get_in_app_purchase_url_params() {
	// Get url (from path onward) for the current page,
	// so WCCOM "back" link returns user to where they were.
	$back_admin_path = add_query_arg( array() );
	return array(
		'wccom-site'          => site_url(),
		'wccom-back'          => rawurlencode( $back_admin_path ),
		'wccom-woo-version'   => Constants::get_constant( 'WC_VERSION' ),
		'wccom-connect-nonce' => wp_create_nonce( 'connect' ),