Skip to content

Instantly share code, notes, and snippets.

View IanMisnerThough's full-sized avatar

Ian Misner IanMisnerThough

View GitHub Profile
@IanMisnerThough
IanMisnerThough / obsidian-meeting-agenda.md
Created January 3, 2021 18:41
A meeting agenda template for Obsidian.md

Meeting Title

  • Date:
  • Start Time:
  • End Time:
  • Attendees:

Meeting Objective

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(