Block dashboard access from users with the role of Subscriber.


/**
 * Block dashboard access from users with the role of Subscriber.
 *
 * @since 2.3.0
 *
 * @see pmpro_block_dashboard
 *
 * @param bool $block true to block dashboard access, false if not.
 *
 * @return bool true to block the dashboard, false if not.
 */
apply_filters( 'pmpro_block_dashboard', $block );

Parameters

$block
boolean

Source

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

View in Source Code

Related Articles and Recipes

Block Dashboard Access for Additional User Roles By Kimberly Coleman