- Date:
- Start Time:
- End Time:
- Attendees:
This space should also be used for introductions, if necessary
/** | |
* Make the Team Name field on the product page Required | |
* Requires Teams 1.0.2 | |
* | |
* @param array $fields the product page fields | |
* @param \WC_Product $product current product, unused | |
* @return array updated fields | |
*/ | |
add_filter( 'wc_memberships_for_teams_product_team_user_input_fields', function( $fields, $product ) { |
<?php // remove this line if not needed | |
add_action( 'init', 'sv_memberships_delete_user_memberships' ); | |
function sv_memberships_delete_user_memberships() { | |
global $wpdb; | |
if ( $user = get_user_by( 'email', 'EMAIL-ADDRESS' ) ) { | |
$wpdb->delete( |