bp_get_message_activate_deactivate_text()
Generate the text (‘Deactivate’ or ‘Activate’) for the notice action link.
Description
Return
(string)
Source
File: bp-messages/bp-messages-template.php
function bp_get_message_activate_deactivate_text() { global $messages_template; if ( 1 === (int) $messages_template->thread->is_active ) { $text = __('Deactivate', 'buddyboss'); } else { $text = __('Activate', 'buddyboss'); } /** * Filters the "Deactivate" or "Activate" text for notice action links. * * @since BuddyPress 1.0.0 * * @param string $text Text used for notice action links. */ return apply_filters( 'bp_message_activate_deactivate_text', $text ); }
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.