Filter: classifai_has_access

apply_filters( 'classifai_has_access', $access, $feature, $user_id, $settings ) → {bool}

Filter to override user access to a ClassifAI feature.

Parameters:
Name Type Description
$access bool

Current access value.

$feature string

Feature name.

$user_id int

User ID.

$settings array

Feature settings.

Since:
  • 2.4.0
Source:
Returns:

Should the user have access?

Type
bool