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 characters
// Override the woocommerce default filter for getting max price for filter widget. | |
add_filter( 'woocommerce_price_filter_widget_max_amount', 'theme_woocommerce_price_filter_widget_max_amount', 10, 2 ); | |
/** | |
* Fix max_price issue in price filter widget. | |
* | |
* @param int $max_price The price filter form max_price. | |
* @return int Max price for the filter. | |
*/ | |
function theme_woocommerce_price_filter_widget_max_amount( $max_price ) { |
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 characters
<?php | |
// NOTE: It would normally be recommended to split a block's JavaScript | |
// implementation to a separate file, but is authored here in a single | |
// file for convenience's sake. | |
// | |
// See: https://github.com/WordPress/gutenberg/pull/2791 | |
/** | |
* Plugin Name: Stars Block |
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 characters
<?php | |
/* | |
Plugin Name: Defer WooCommerce emails for a few minutes (use Action Scheduler) | |
Plugin URI: https://www.damiencarbery.com/2020/04/defer-woocommerce-emails-for-a-few-minutes/ | |
Description: Defer WooCommerce emails for a specified time after the normal delivery time. Use Action Scheduler instead of WP Cron. Call do_action() instead of remove_action() and calling trigger. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.11.20250528 | |
*/ |
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 characters
<?php | |
$data = array( | |
"sender" => array( | |
"email" => '[email protected]', | |
"name" => 'sender email' | |
), | |
"to" => array( |
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 characters
<?php | |
/** | |
* Alter the response sent from webhook to the source. | |
* | |
* @param array $response Original response being sent to the source. | |
* @param string $workflow_id The workflow ID. | |
* @param array $capture_data Data captured in the webhook. | |
* | |
* @return array | |
*/ |
OlderNewer