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
add_action( 'wp_footer', 'add_noscript_warning' ); | |
function add_noscript_warning () { ?> | |
<noscript> | |
<div style=" | |
font-family: sans-serif; | |
position: fixed; | |
bottom: 0; |
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
/* | |
** Use this function to remove an array of plugins from being loaded | |
**/ | |
add_filter( 'option_active_plugins', 'enable_plugins_selectively' ); | |
function enable_plugins_selectively( $plugins ) { | |
// Use add_query_arg to get the current URL. | |
// You can use any other valid method that suits. |
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
// | |
// CUSTOMISE WOOCOMMERCE PRODUCT CATEGORY TAXONOMY | |
// | |
// Requires WooCommerce to be installed. | |
// ------------------------------------------------------------------------------------ | |
// A simple method to make changes to the mames of standard WooCommerce taxonomies. | |
// Just replace <my new name> with the text you want to use: | |
// e.g. For the taxonomy 'Product Category' (product_cat/prod_cat) | |
// you could use 'Photoshoots' if you just sold Photographs etc. | |
// or 'Ranges' if that is better than Product Categories |