Last active
January 2, 2019 10:38
-
-
Save gregrickaby/2852142 to your computer and use it in GitHub Desktop.
Revisions
-
gregrickaby revised this gist
May 25, 2015 . 2 changed files with 15 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ <?php //* Do NOT include the opening php tag shown above. Copy the code shown below into functions.php /** * Remove all WooCommerce scripts and styles! Forever! * * @author WP Smith * @since 1.0.0 */ function grd_remove_woocommerce_styles_scripts() { remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); remove_action( 'wp_enqueue_scripts', array( $GLOBALS['woocommerce'], 'frontend_scripts' ) ); } define( 'WOOCOMMERCE_USE_CSS', false ); add_action( 'init', 'grd_remove_woocommerce_styles_scripts', 99 ); -
gregrickaby revised this gist
Apr 22, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ add_action( 'init', 'child_manage_woocommerce_styles', 99 ); define( 'WOOCOMMERCE_USE_CSS', false ); /** * Remove all WooCommerce scripts and styles * * @author WP Smith * @since 1.0.0 */ function child_manage_woocommerce_styles() { remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); remove_action( 'wp_enqueue_scripts', array( $GLOBALS['woocommerce'], 'frontend_scripts' ) ); } -
gregrickaby revised this gist
Jun 26, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ add_action( 'init', 'child_manage_woo_styles', 99 ); define( 'WOOCOMMERCE_USE_CSS', false ); /** * Remove all WooCommerce scripts and styles * -
gregrickaby created this gist
Jun 1, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ add_action( 'init', 'child_manage_woo_styles', 99 ); define( 'WOOCOMMERCE_USE_CS', false ); /** * Remove all WooCommerce scripts and styles * * @author WP Smith * @since 1.0.0 */ function child_manage_woo_styles() { remove_action( 'wp_head', array( $GLOBALS['woocommerce'], 'generator' ) ); remove_action( 'wp_enqueue_scripts', array( $GLOBALS['woocommerce'], 'frontend_scripts' ) ); }