' . esc_html( $msg ) . '

If you need access to this page please contact the dashboard administrator.'; } else { return $msg; } return false; } } if ( ! function_exists( 'mainwp_current_user_can' ) ) { /** * Check permission level. * * To compatible with extensions. * * @param string $cap_type Group or type of capabilities. * @param string $cap Capabilities for current user. * * @return bool true|false */ function mainwp_current_user_can( $cap_type = '', $cap ) { if ( function_exists( 'MainWP\Dashboard\mainwp_current_user_have_right' ) ) { return MainWP\Dashboard\mainwp_current_user_have_right( $cap_type, $cap ); } return true; } }