/*
Plugin Name: Aqualogy Hide Admin Bar
Author: Scary Red
Description: Hide admin bar for subscribers
*/
# Hide the admin bar for subscribers
function aqualogy_hide_menu() {
if (current_user_can('subscriber')) {
add_filter( 'show_admin_bar', '__return_false' );
}
}
add_action( 'init', 'aqualogy_hide_menu', 8 );
?>
/*
Plugin Name: Aqualogy Login/Logout Links
Author: Scary Red
Description: Add login/logout links to the menu
*/
# Add logout link to the main menu
function aqualogy_add_logout_link( $items, $args ) {
if ($args->theme_location == 'secondary-menu') {
if (is_user_logged_in()) {
$items .= '