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 | |
function enqueue_jquery_from_cdn() { | |
/* Step 1: Remove the jQuery included in WP by default. | |
* Doc: https://codex.wordpress.org/Function_Reference/wp_deregister_script/ | |
*/ | |
wp_deregister_script( 'jquery' ); | |
/* Step 2: Re-add jQuery library with another source. | |
* Get version source from Google CDN here: | |
* https://developers.google.com/speed/libraries/#jquery | |
* Doc: https://developer.wordpress.org/reference/functions/wp_enqueue_script/ |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |