bbp_check_topic_tag_edit()
Redirect if unauthorized user is attempting to edit a topic tag
Description Description
Source Source
File: includes/topics/functions.php
function bbp_check_topic_tag_edit() { // Bail if not editing a topic tag if ( ! bbp_is_topic_tag_edit() ) { return; } // Bail if current user cannot edit topic tags if ( ! current_user_can( 'edit_topic_tag', bbp_get_topic_tag_id() ) ) { bbp_redirect( bbp_get_topic_tag_link() ); } }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |