[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/Requests/src/ -> Auth.php (summary)

Authentication provider interface

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

Defines 1 class

Auth:: (1 method):
  register()


Interface: Auth  - X-Ref

Authentication provider interface

Implement this interface to act as an authentication provider.

Parameters should be passed via the constructor where possible, as this
makes it much easier for users to use your provider.

register(Hooks $hooks)   X-Ref
Register hooks as needed

This method is called in {@see \WpOrg\Requests\Requests::request()} when the user
has set an instance as the 'auth' option. Use this callback to register all the
hooks you'll need.

param: \WpOrg\Requests\Hooks $hooks Hook system



Generated : Sun May 5 08:20:02 2024 Cross-referenced by PHPXref