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
### Keybase proof | |
I hereby claim: | |
* I am boswall on github. | |
* I am matt_goodlife (https://keybase.io/matt_goodlife) on keybase. | |
* I have a public key ASAbVBLD2c5Y5_ei_eE9d_El7ooDCaHNCX_bM0npHjpUyAo | |
To claim this, I am signing this object: |
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 | |
// If this file is called directly, abort. | |
if ( ! defined( 'WPINC' ) ) { | |
die; | |
} | |
add_action( 'woocommerce_order_status_completed', 'boswall_wati_woocommerce_order_status_completed', 20, 2 ); | |
function boswall_wati_woocommerce_order_status_completed( $order_id, $order ) { | |
$logger = wc_get_logger(); | |
$context = array( 'source' => 'woocommece-wati' ); |
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 | |
add_filter( 'option_woocommerce_sagepaydirect_settings', 'boswall_option_woocommerce_sagepaydirect_settings', 100 ); | |
function boswall_option_woocommerce_sagepaydirect_settings ( $value ) { | |
if ( is_admin() ) { | |
return $value; | |
} | |
if ( ! is_checkout() ) { | |
return $value; | |
} |
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 | |
/* | |
Plugin Name: Site Environment Notification | |
Plugin URI: https://gist.github.com/boswall/c50836f73088ffc46fbd0922fd37e412 | |
Description: Add a notification to the admin top bar to show users if they are on the ‘local’, ‘development’, ‘staging’ or ‘production’ version of the site. Use <code>define( 'WP_ENVIRONMENT_TYPE', 'local' );</code> to define this in the wp-config.php file. | |
Author: Matt Rose | |
Author URI: https://glaikit.co.uk/ | |
*/ |
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_filter( 'woocommerce_get_endpoint_url', 'boswall_woocommerce_get_endpoint_url', 10, 4 ); | |
function boswall_woocommerce_get_endpoint_url( $url, $endpoint, $value, $permalink ) { | |
// only on the thank you page | |
if ( 'order-received' !== $endpoint ) { | |
return $url; | |
} | |
return add_query_arg( 'coupons_used', implode( ',', wc_get_order( $value ) ), $url ); | |
}; |
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 | |
/** | |
* Plugin Name: Boswall's Credits Mod for Hestia | |
* Plugin URI: https://gist.github.com/boswall/f263f77b3e4cb2349e7c94518834b5e5 | |
* Description: Change the default credits text in the Hestia Theme | |
* Version: 2.0 | |
* Author: Matt Rose | |
* Author URI: https://glaikit.co.uk/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
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 | |
/** | |
* Plugin Name: Boswall's CCTM exporter | |
* Plugin URI: https://glaikit.co.uk/ | |
* Description: Export from the old CCTM plugin to use WP native custom post types and CMB2 | |
* Version: 1.0 | |
* Author: Matt Rose | |
* Author URI: https://glaikit.co.uk/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
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 | |
/* | |
Plugin Name: Plugin Info dumper | |
Plugin URI: http://drivedigital.co.uk/ | |
Description: Dump the plugin info. | |
Author: Matt Rose | |
Version: 1.0 | |
Author URI: http://drivedigital.co.uk/ | |
*/ |
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 | |
/* | |
Plugin Name: Boswall's Checkout Clearer | |
Plugin URI: # | |
Description: Fixing the checkout privacy error in Loushou: ACF to WooCommerce plugin. http://wordpress.org/support/topic/previous-form-entry-visible-on-next-form-view/ | |
Version: 1 | |
Author: Boswall | |
Author URI: https://glaikit.co.uk/ | |
*/ |
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 | |
/** | |
* | |
* CSS code was colouring text boxes based on their ID, breaking if you added a new one or rearranged them. This adds a new text widget with different classes that can be styled properly. | |
* MR 2016 | |
* | |
* Style with | |
* .widget_grey_text {} | |
* | |
**/ |