bp_get_member_invitation_subject()
Returns the subject of invite email.
Description
Return
(string)
Source
File: bp-invites/bp-invites-functions.php
function bp_get_member_invitation_subject() { global $bp; $term = get_term_by('name', 'invites-member-invite', bp_get_email_tax_type() ); $args = array( 'post_type' => bp_get_email_post_type(), 'tax_query' => array( array( 'taxonomy' => bp_get_email_tax_type(), 'field' => 'term_id', 'terms' => $term->term_id ) ) ); $query = new WP_Query( $args ); $title = bp_get_member_invites_wildcard_replace( $query->posts[0]->post_title ); return apply_filters( 'bp_get_member_invitation_subject', stripslashes( $title ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.