[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/plugins/akismet/abilities/ -> class-akismet-ability.php (summary)

Represents a Base Ability. This class holds a default constructor to register the ability and a default permission.

File Size: 60 lines (2 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  __construct()
  current_user_has_permission()

Functions
Functions that are not part of a class:

__construct()   X-Ref
Constructor - registers the ability.


current_user_has_permission( ?array $input = null )   X-Ref
Permission callback for any ability that uses this trait.

return: bool Whether the current user can use this ability.
param: array|null $input The input parameters (unused).



Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref