How do I make app specific changes on the WP pages?

We’ve recently implemented a WordPress Hook to allow your website to catch when a visitor is coming from your ShopApper app and insert any script or stylesheet to your website for those only.

Below is a sample code to add to your functions.php:

// ShopApper hook that catches visits from your app
function shopapper_scripts_function()
     // Enqueue scripts and styles you want to run on all app visits here
     wp_enqueue_style( 'app-style', get_stylesheet_directory_uri().'/app/app.css');
     // You can also enqueue scripts or styles for specific app package names:
     if(isset($_GET['shopapper-package-name']) and $_GET['shopapper-package-name'] !== 'shopapper.shopapper.shopapper')
          // Enqueue scripts and styles you want to run ONLY for a specific app package name here