Add javascript for FastSpring's Git Updater popup store.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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