- Date:
- Start Time:
- End Time:
- Attendees:
This space should also be used for introductions, if necessary
| <?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( |
| /** | |
| * 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 ) { |
| remove_filter( 'the_content', 'capital_P_dangit', 11 ); | |
| remove_filter( 'the_title', 'capital_P_dangit', 11 ); | |
| remove_filter( 'comment_text', 'capital_P_dangit', 31 ); | |
| add_filter( 'the_content', 'improved_capital_p_dangit', 11 ); | |
| add_filter( 'the_title', 'improved_capital_p_dangit', 11 ); | |
| add_filter( 'comment_text', 'improved_capital_p_dangit', 31 ); | |
| function improved_capital_p_dangit( $text ) { | |
| return preg_replace_callback( '/\bWordPress\b/i', function( $matches ) { |
| /** | |
| * Name: Custom CheckoutWC Thank You Page Messages for Specific/Special Products | |
| * Description: Overrides CheckoutWC order updates and local pickup messages when specific products are in the order. | |
| * Author: Kestrel | |
| * Date: 2025-11-12 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; | |
| } |