This function has been deprecated. BuddyBoss 1.0.0 instead.

bp_get_send_public_message_button( array|string $args = '' )

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

Description

Parameters

$args

(array|string) (Optional) All arguments are optional. See BP_Button for complete descriptions.

  • 'id'
    (string) Default: 'public_message'.
  • 'component'
    (string) Default: 'activity'.
  • 'must_be_logged_in'
    (bool) Default: true.
  • 'block_self'
    (bool) Default: true.
  • 'wrapper_id'
    (string) Default: 'post-mention'.
  • 'link_href'
    (string) Default: the public message link for the current member in the loop.
  • 'link_text'
    (string) Default: 'Public Mention'.
  • 'link_class'
    (string) Default: 'activity-button mention'.

Default value: ''

Return

(string) The button for sending a public message.

Source

File: bp-core/deprecated/buddyboss/1.0.php

	function bp_get_send_public_message_button( $args = '' ) {
		_deprecated_function( __FUNCTION__, '1.0.0' );

		return "";
		// $r = bp_parse_args( $args, array(
		// 	'id'                => 'public_message',
		// 	'component'         => 'activity',
		// 	'must_be_logged_in' => true,
		// 	'block_self'        => true,
		// 	'wrapper_id'        => 'post-mention',
		// 	'link_href'         => bp_get_send_public_message_link(),
		// 	'link_text'         => __( 'Public Mention', 'buddyboss' ),
		// 	'link_class'        => 'activity-button mention'
		// ) );

		// /**
		//  * Filters the public message button HTML.
		//  *
		//  * @since BuddyPress 1.2.10
		//  *
		//  * @param array $r Array of arguments for the public message button HTML.
		//  */
		// return bp_get_button( apply_filters( 'bp_get_send_public_message_button', $r ) );
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 BuddyBoss 1.0.0
BuddyPress 1.2.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.