bp_get_message_activate_deactivate_link

  • apply_filters( 'bp_get_message_activate_deactivate_link', $link )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 486
      }
      	function bp_get_message_activate_deactivate_link() {
      		global $messages_template, $bp;
      
      		if ( 1 == (int)$messages_template->thread->is_active ) {
      			$link = wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/deactivate/' . $messages_template->thread->id, 'messages_deactivate_notice' );
      		} else {
      			$link = wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/activate/' . $messages_template->thread->id, 'messages_activate_notice' );
      		}
      		return apply_filters( 'bp_get_message_activate_deactivate_link', $link );
      	}
      
      function bp_message_activate_deactivate_text() {
      	echo bp_get_message_activate_deactivate_text();
      }
      	function bp_get_message_activate_deactivate_text() {
      		global $messages_template;
      
      		if ( 1 == (int)$messages_template->thread->is_active  ) {
      			$text = __('Deactivate', 'buddypress');
      

Comments are closed.