bbp_current_user_can_publish_forums()
Check if the current user can publish forums
Description Description
Return Return
(bool)
Source Source
File: includes/users/template.php
function bbp_current_user_can_publish_forums() { // Users need to earn access $retval = false; // Always allow keymasters if ( bbp_is_user_keymaster() ) { $retval = true; // User is logged in } elseif ( current_user_can( 'publish_forums' ) ) { $retval = true; } // Filter & return return (bool) apply_filters( 'bbp_current_user_can_publish_forums', $retval ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |