aam_default_instantiated_action
Purpose
Run after the default access level is instantiated.
Callback
- Type: Action.
- Arguments:
$level. - Return: ignored.
Example
add_action('aam_default_instantiated_action', function ($level) {
error_log('AAM access level initialized: ' . get_class($level));
}, 10, 1);
Runs after the access-level object is created. Replace the log call with initialization code when needed.
See the complete hook list.