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 | |
/** | |
* | |
* This function returns the number of canceled tickets of a specific FooEvents WooCommerce product. | |
* @author Saskia Teichmann | wp-studio.dev | |
* | |
* @param int $event_product_id. | |
* @return int | |
*/ | |
function wpstudiodev_get_number_of_canceled_tickets($event_product_id){ |
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 | |
/** | |
* @snippet Disable Payment Method for Specific Category | |
* | |
*/ | |
function my_unset_gateway_by_category( $available_gateways ) { | |
global $woocommerce; | |
$parentCatID = ''; | |
$category_IDs = array( 373, 436, 374, 375, 380, 376 ); | |
if(!is_admin()){ |
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: Event Tickets Meta Hawk | |
* Description: Lets site administrators soar over attendee meta data supplied by attendees then swoop down, hawk-like, to change it. Proof of concept targeting the WooCommerce provider. | |
* Version: 2019-08-03 | |
* Author: Barry Hughes | |
* | |
* Contributor: Saskia Lund | |
* | |
* Experiment in making attendee meta editable via the attendee screen. |
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
/* | |
* @author Saskia Lund | |
* @authorurl https://www.saskialund.de/ | |
* | |
* When Yoast SEO and List Category Posts are activated alongside each other, | |
* there is an issue regarding canonicals and rel=next and rel=prev urls displayed in head html. | |
* List Category Posts is making use of its own pagination methods, while Yoast SEO is being WP codex compliant | |
* and is making use of WP pagination methods. | |
* | |
* Preparations |