Skip to content

Instantly share code, notes, and snippets.

@afragen
Created November 3, 2022 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afragen/e7819dd1e17be5792c299dbef989d446 to your computer and use it in GitHub Desktop.
Save afragen/e7819dd1e17be5792c299dbef989d446 to your computer and use it in GitHub Desktop.
Add javascript for FastSpring's Git Updater popup store.
<?php
/**
* Add FastSpring popup store script for Git Updater.
*
* @package FastSpringPopUpStore
*
* Plugin Name: FastSpring Popup Store for Git Updater
* Plugin URI: https://gist.github.com/afragen/e7819dd1e17be5792c299dbef989d446
* Description: Add FastSpring popup store javascript for Git Updater.
* Version: 0.1.0
* Author: Andy Fragen
* License: MIT
* Requires at least: 5.9
* Requires PHP: 7.2
* Gist Plugin URI: https://gist.github.com/afragen/e7819dd1e17be5792c299dbef989d446
*/
add_action(
'wp_footer',
function() {
// phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript
echo '<script type="text/javascript" id="fsc-api" src="https://d1f8f9xcsvx3ha.cloudfront.net/sbl/0.9.0/fastspring-builder.min.js" data-storefront="gitupdater.onfastspring.com/popup-gitupdater"></script>';
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment