llms_disable_admin_bar( bool $show_admin_bar )
Disables admin bar on front end
Description Description
Parameters Parameters
- $show_admin_bar
-
(bool) (Required) default value (true).
Return Return
(bool)
Source Source
File: includes/functions/llms.functions.person.php
function llms_disable_admin_bar( $show_admin_bar ) { if ( apply_filters( 'lifterlms_disable_admin_bar', true ) && ! ( current_user_can( 'edit_posts' ) || current_user_can( 'manage_lifterlms' ) ) ) { $show_admin_bar = false; } return $show_admin_bar; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: