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
/** | |
* Greenhouse Job Board loader | |
* | |
* | |
*/ | |
class GreenhouseJobBoard { | |
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( 'init', function() { | |
//Saftey check | |
if ( !class_exists( 'WC_SC_Display_Coupons' ) ) { | |
return; | |
} | |
$WC_SC_Display_Coupons = WC_SC_Display_Coupons::get_instance(); | |
remove_action( 'woocommerce_after_shop_loop_item', array( $WC_SC_Display_Coupons, 'remove_add_to_cart_button_from_shop_page' ) ); |
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
/** | |
* Change the Action that Smart Coupons | |
* uses to output it's select options button | |
* and remove the add to cart button | |
* | |
*/ | |
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 | |
class ClassName { | |
/** | |
* Instance | |
*/ | |
public static $instance = null; | |
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 | |
/** | |
* Additions to the Product Add-on Plugins | |
* | |
* Enables us to add a product taxonomy to the | |
* addon so we can further refine where it | |
* is displayed | |
* | |
* |
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
* Auto-fill email of logged-in user | |
* who is trying to become a member | |
* | |
* @added 3/5/2020 | |
*/ | |
add_filter( 'gform_field_value', 'user_upgrade_fields', 10, 3 ); | |
function user_upgrade_fields( $value, $Field, $name ) { | |
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
/** | |
* Remove taxonomy terms that aren't a parent/child of the current page | |
* | |
* | |
* | |
*/ | |
public function facetwp_facet_render_args( $args ) { | |