bp_get_member_invitation_subject()
Returns the subject of invite email.
Description
Return
(string)
Source
File: bp-invites/bp-invites-functions.php
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | 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.