WordPress at Your Fingertips
function is not described

WC_Admin_Addons::get_action_url() public WC 1.0

Take an action object and return the URL based on properties of the action.

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

No Hooks.

Return

String. URL.

Usage

$result = WC_Admin_Addons::get_action_url( $action ): string;
$action(object) (required)
Action object.

Code of WC_Admin_Addons::get_action_url() WC 5.9.0

public static function get_action_url( $action ): string {
	if ( ! isset( $action->url ) ) {
		return '';
	}

	if ( isset( $action->url_is_admin_query ) && $action->url_is_admin_query ) {
		return wc_admin_url( $action->url );
	}

	if ( isset( $action->url_is_admin_nonce_query ) && $action->url_is_admin_nonce_query ) {
		if ( empty( $action->nonce ) ) {
			return '';
		}
		return wp_nonce_url(
			admin_url( $action->url ),
			$action->nonce
		);
	}

	return $action->url;
}