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 | |
// HELPER FUNCTION | |
public function endsWith( $haystack, $needle ) { | |
return $needle === "" || (substr($haystack, -strlen($needle)) === $needle); | |
} | |
public function create_kiyoh_invite($order_id, $this_status_transition_from, $this_status_transition_to, $instance){ | |
$result=false; | |
$current_domain = 'yourdomain.com'; |
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 Ysm_Search | |
* Retrieves posts from the database depending on settings | |
*/ | |
class Ysm_Search | |
{ | |
/** |
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: WooCommerce - Hide categories where no products are visible to user | |
Plugin URI: https://www.randall.nl | |
Description: Excludes categories with no visible products from the WooCommerce category overview in shop | |
Version: 1.2 | |
Author: Randall Kam | |
Author URI: https://www.randall.nl | |
*/ |
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: WooCommerce - Exclude empty categories from widget | |
Plugin URI: https://chrisk.io/woocommerce-hide-categories-with-no-visible-products-in-the-product-category-widget/ | |
Description: Excludes categories with no visible products from the WooCommerce category list | |
Version: 0.2 | |
Author: Chris Klosowski | |
Editor: Randall Kam | |
Author URI: https://chrisk.io | |
*/ |