bp_get_send_public_message_button

Return button for sending a public message (an @-mention).

Description

(string) bp_get_send_public_message_button( (string) $args = '' ); 

Returns (string)

The button for sending a public message.

Parameters (1)

0. $args — Optional. (string) => ''
The args.

Options

    ;        


    Usage

    1. if ( !function_exists( 'bp_get_send_public_message_button' ) ) { 
    2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-template.php'; 
    3.  
    4. // The args. 
    5. $args = ''; 
    6.  
    7. // NOTICE! Understand what this does before running. 
    8. $result = bp_get_send_public_message_button($args); 
    9.  

    Defined (1)

    The function is defined in the following location(s).

    /bp-activity/bp-activity-template.php  
    1. function bp_get_send_public_message_button( $args = '' ) { 
    2.  
    3. $r = bp_parse_args( $args, array( 
    4. 'id' => 'public_message',  
    5. 'component' => 'activity',  
    6. 'must_be_logged_in' => true,  
    7. 'block_self' => true,  
    8. 'wrapper_id' => 'post-mention',  
    9. 'link_href' => bp_get_send_public_message_link(),  
    10. 'link_text' => __( 'Public Message', buddypress ),  
    11. 'link_class' => 'activity-button mention' 
    12. ) ); 
    13.  
    14. /** 
    15. * Filters the public message button HTML. 
    16. * @since 1.2.10 
    17. * @param array $r Array of arguments for the public message button HTML. 
    18. */