Import_Now::get_import_url( string $redirect = '' )

Summary

No summary available.

Parameters

$redirect

(string) (Optional)

Default value: ''


Return

(string)


Source

File: src/BigCommerce/Settings/Import_Now.php

	public function get_import_url( $redirect = '' ) {
		$url = admin_url( 'admin-post.php' );
		$url = add_query_arg( [
			'action' => self::ACTION,
		], $url );
		if ( ! empty( $redirect ) ) {
			$url = add_query_arg( [ 'redirect_to' => urlencode( $redirect ) ], $url );
		}
		$url = wp_nonce_url( $url, self::ACTION );

		return $url;
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.