Automattic\WooCommerce\Internal\Orders
MobileMessagingHandler::manage_order_message()
Prepares message with a deep link to manage order details.
Method of the class: MobileMessagingHandler{}
No Hooks.
Return
String
. formatted message
Usage
$result = MobileMessagingHandler::manage_order_message( $blog_id, $order_id, $domain ): string;
- $blog_id(int) (required)
- blog id to deep link to.
- $order_id(int) (required)
- order id to deep link to.
- $domain(string) (required)
- URL of the current site.
MobileMessagingHandler::manage_order_message() MobileMessagingHandler::manage order message code WC 9.5.1
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>' ); }