Recently I published an article “Adding WordPress REST API Security To Basic CRUD Operations” where the permissions callback points directly to a function: register_rest_route( SLP_REST_SLUG . ‘/’ . $version, ‘/locations/’,…Continue readingUsing PHP Anonymous Functions In WordPress