1 | <?php |
||
13 | class Capabilities { |
||
14 | /** |
||
15 | * The list of registered capabilities |
||
16 | * |
||
17 | * @var array capabilities |
||
18 | */ |
||
19 | private static $capabilities = []; |
||
20 | |||
21 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
22 | public static function clear() { |
||
25 | |||
26 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
27 | public static function get( $name ) { |
||
30 | |||
31 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
32 | public static function register( $capability ) { |
||
36 | |||
37 | // public static function register_caps() |
||
38 | |||
39 | // phpcs:ignore Squiz.Commenting.FunctionComment.Missing |
||
40 | public static function user_has_cap( $allcaps, $caps, $args, $user ) { |
||
50 | } |
||
51 | |||
55 |