Automattic\WooCommerce\Internal\Orders

MobileMessagingHandler::manage_order_message()private staticWC 1.0

Prepares message with a deep link to manage order details.

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

Хуков нет.

Возвращает

Строку. formatted message

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

$result = MobileMessagingHandler::manage_order_message( $blog_id, $order_id, $domain ): string;
$blog_id(int) (обязательный)
blog id to deep link to.
$order_id(int) (обязательный)
order id to deep link to.
$domain(строка) (обязательный)
URL of the current site.

Код MobileMessagingHandler::manage_order_message() WC 7.1.0

private static function manage_order_message( int $blog_id, int $order_id, string $domain ): string {
	$deep_link_url = add_query_arg(
		array_merge(
			array(
				'blog_id'  => absint( $blog_id ),
				'order_id' => absint( $order_id ),
			),
			self::prepare_utm_parameters( 'deeplinks_orders_details', $blog_id, $domain )
		),
		'https://woocommerce.com/mobile/orders/details'
	);

	return sprintf(
		/* translators: 1: opening link tag 2: closing link tag. */
		esc_html__(
			'%1$sManage the order%2$s with the app.',
			'woocommerce'
		),
		'<a href="' . esc_url( $deep_link_url ) . '">',
		'</a>'
	);
}