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 | |
/* | |
WPML checks for gutenberg like this: | |
\WPML_Page_Builders_Defined->has() | |
``` | |
if ( 'gutenberg' === $page_builder ) { | |
if ( version_compare( $wp_version, '5.0-beta1', '>=' ) ) { | |
return true; | |
} | |
} |
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 | |
/* | |
Instructions | |
Replace YOUR_ACF_FIELD with the name of your acf select dropdown key | |
Add to functions.php or code snippets plugin | |
Forms will load sorted by Title in ASC order (A to Z) | |
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
From: "Mel" [email protected] | |
Hello, | |
This is Melea and I am a licensed illustrator. | |
I was discouraged, putting it lightly, when I came across my images at your website. If you use a copyrighted image without an owner's permission, you must know that you could be sued by the copyright holder. | |
It's illegal to use stolen images and it's so selfish! |
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 | |
// Place the following code in your theme's functions.php file | |
// override the quantity input with a dropdown | |
function woocommerce_quantity_input() { | |
global $product; | |
$defaults = array( | |
'input_name' => 'quantity', | |
'input_value' => '1', | |
'max_value' => apply_filters( 'woocommerce_quantity_input_max', '', $product ), |
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
UrlEncoder = { | |
/** | |
* Encode a [deeply] nested object for use in a url | |
* Assumes Array.each is defined | |
*/ | |
encode: function(params, prefix) { | |
var items = []; | |