Automattic\WooCommerce\Internal\Admin
Loader::smart_app_banner
Adds an iOS "Smart App Banner" for display on iOS Safari. See https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html
Method of the class: Loader{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$result = Loader::smart_app_banner();
Loader::smart_app_banner() Loader::smart app banner code WC 9.8.5
public static function smart_app_banner() { $exclude_paths = array( '/customize-store', '/setup-wizard', '/launch-your-store', ); /* phpcs:ignore */ $path = $_GET['path'] ?? ''; if ( PageController::is_admin_or_embed_page() && ! in_array( $path, $exclude_paths, true ) ) { echo " <meta name='apple-itunes-app' content='app-id=1389130815'> "; } }