bp_nouveau_ajax_clear_new_mentions()
Clear mentions if the directory tab is clicked
Return Return
(string) JSON reply
Source Source
File: bp-templates/bp-nouveau/includes/activity/ajax.php
function bp_nouveau_ajax_clear_new_mentions() { if ( ! bp_is_post_request() ) { wp_send_json_error(); } // Nonce check! if ( empty( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'bp_nouveau_activity' ) ) { wp_send_json_error(); } bp_activity_clear_new_mentions( bp_loggedin_user_id() ); wp_send_json_success(); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |