This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Frontend::can_use_mods( string[] $mods, string $context, array $allowed_context )

Check that all mods passed can be used for the provided context.


Description

We use this to check if we can register subscribers for the provided mods.


Parameters

$mods

(Required) A list of mods.

$context

(Required) A context for the mods.

$allowed_context

(Required) A list of allowed contexts to be passed on.


Return

(int)


Source

File: inc/core/styles/frontend.php


			


Changelog

Changelog
Version Description
3.1.0 Introduced.