Automattic\WooCommerce\Internal\Orders
MobileMessagingHandler::no_app_message
Prepares message with a deep link to learn more about mobile app.
Method of the class: MobileMessagingHandler{}
No Hooks.
Returns
String. formatted message
Usage
$result = MobileMessagingHandler::no_app_message( ?int $blog_id, $domain ): string;
- ?int $blog_id(required)
- .
- $domain(string) (required)
- URL of the current site.
MobileMessagingHandler::no_app_message() MobileMessagingHandler::no app message code WC 10.8.1
private static function no_app_message( ?int $blog_id, string $domain ): string {
$deep_link_url = add_query_arg(
array_merge(
array(
'blog_id' => absint( $blog_id ),
),
self::prepare_utm_parameters( 'deeplinks_promote_app', $blog_id, $domain )
),
'https://woocommerce.com/mobile'
);
return sprintf(
/* translators: 1: opening link tag 2: closing link tag. */
esc_html__(
'Process your orders on the go. %1$sGet the app%2$s.',
'woocommerce'
),
'<a href="' . esc_url( $deep_link_url ) . '">',
'</a>'
);
}