aam_framework_resource_methods_filter

Purpose

Add callable methods to a resource object.

Callback

Example

add_filter('aam_framework_resource_methods_filter', function ($methods, $resource) {
    $methods['myapp_source'] = function () {
        return 'custom';
    };
    return $methods;
}, 10, 2);

Adds a myapp_source() method to resource objects; AAM binds the closure to the object.

See the complete hook list.