I hereby claim:
- I am emilushi on github.
- I am emilushi (https://keybase.io/emilushi) on keybase.
- I have a public key whose fingerprint is EA73 AE5D 760D 35D4 A4E0 ECFA BA46 1CEC 1AB3 AC8D
To claim this, I am signing this object:
| <?php | |
| namespace Fry; | |
| use JsonStreamingParser\Listener; | |
| /** | |
| * This implementation allows to process an object at a specific level | |
| * when it has been fully parsed | |
| */ |
| <?php | |
| if (class_exists(\WeglotWP\Actions\Email_Translate_Weglot::class) && ! in_array('weglot/weglot.php', apply_filters('active_plugins', get_option('active_plugins')), true)) { | |
| remove_filter('wp_mail', [\WeglotWP\Actions\Email_Translate_Weglot::class, 'weglot_translate_emails']); | |
| } |
| <?php | |
| /** | |
| * Output radio buttons on WooCommerce variations. | |
| */ | |
| add_filter('woocommerce_dropdown_variation_attribute_options_html', static function ($html, $args) { | |
| /** @var array $args */ | |
| $args = wp_parse_args(apply_filters('woocommerce_dropdown_variation_attribute_options_args', $args), [ | |
| 'options' => false, | |
| 'attribute' => false, |
| <?php | |
| use WC_Subscriptions_Cart; | |
| add_filter('woocommerce_add_to_cart_validation', function(){ | |
| //If WooCommerce Subscriptions is installed handle the things... | |
| if (in_array('woocommerce-subscriptions/woocommerce-subscriptions.php', apply_filters('active_plugins', get_option('active_plugins')), true)) { | |
| $cartContent = WC()->cart->get_cart(); |
I hereby claim:
To claim this, I am signing this object:
Please follow the above steps to setup PhpStorm with PHP CodeSniffer and WordPress Coding Standards.
# This is the fastest way for Linux/Unix and macOs