eventsmanager icon

disable email per category (not fully tested)

eventsmanager | PRO | 06/08/26 12:44:09 PM UTC | 0 ⭐ | 24405 πŸ‘οΈ | Never ⏰ | []
text |

820 B

|

None

|

0 πŸ‘

/

0 πŸ‘Ž

<?php
add_filter( 'em_booking_email_messages', 'disable_pdf_tickets_for_category_18', 999, 2 );
add_filter( 'em_multiple_booking_email_messages', 'disable_pdf_tickets_for_category_18', 999, 2 );
Β function disable_pdf_tickets_for_category_18( $messages, $EM_Booking ) {
    $EM_Event = $EM_Booking->get_event();
    if ( ! $EM_Event || empty( $EM_Event->post_id ) ) {
        return $messages;
    }
Β     if ( has_term( 18, 'event-categories', $EM_Event->post_id ) && ! empty( $messages['user']['attachments'] ) ) {
        $messages['user']['attachments'] = array_values(
            array_filter( $messages['user']['attachments'], function( $attachment ) {
                return empty( $attachment['name'] ) || strpos( $attachment['name'], 'Tickets - ' ) === false;
            } )
        );
    }
Β     return $messages;
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    πŸ‘

    /

    πŸ‘Ž

    
        
  • roostakbitss icon
    09/11/26 07:24:39 PM UTC
    text |

    0 B

    |

    0 πŸ‘

    /

    0 πŸ‘Ž

    so i figured out a way to get free digital products from g2a. more specifically steam gift cards, google play gift cards and amazon gift cards. just watch this video if you dont believe me.
    Β https://www.youtube.com/watch?v=MGSvVHV5Nvk&t=439s
    https://www.youtube.com/watch?v=MGSvVHV5Nvk&t=439s
    https://www.youtube.com/watch?v=MGSvVHV5Nvk&t=439s