Hide the toolbar from users with the role of Subscriber.


/**
 * Hide the toolbar from users with the role subscriber.
 *
 * @since 2.3.0
 *
 * @see pmpro_hide_toolbar
 *
 * @param bool $hide true to hide the admin toolbar, false if not.
 *
 * @return bool true to hide the toolbar, false if not.
 */
apply_filters( 'pmpro_hide_toolbar', $hide );

Parameters

$hide
boolean

Return Value

true or false


Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/includes/menus.php

View in Source Code

Related Articles and Recipes

Hide the WordPress Toolbar for Additional User Roles By Kimberly Coleman