bp_get_the_thread_delete_link()
Get the URL for deleting the current thread.
Description
Return
(string) URL
Source
File: bp-messages/bp-messages-template.php
function bp_get_the_thread_delete_link() {
/**
* Filters the URL for deleting the current thread.
*
* @since BuddyPress 1.0.0
*
* @param string $value URL for deleting the current thread.
* @param string $value Text indicating action being executed.
*/
return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_messages_slug() . '/inbox/delete/' . bp_get_the_thread_id(), 'messages_delete_thread' ) );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.5.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.