Skip to content

indieauth_scopes

github-actions[bot] edited this page Jul 1, 2026 · 3 revisions

Filters the current token scopes.

IndieAuth plugin should hook into this to provide scopes.

Auto-generated Example

/**
 * Filters the current token scopes.
 * 
 * IndieAuth plugin should hook into this to provide scopes.
 *
 * @param array $scopes 
 * @return array The filtered value.
 */
function my_indieauth_scopes_callback( array $scopes ) {
    // Your code here.
    return $scopes;
}
add_filter( 'indieauth_scopes', 'my_indieauth_scopes_callback' );

Parameters

  • array $scopes Default empty array.

Files

\apply_filters( 'indieauth_scopes', array() )

← All Hooks

Clone this wiki locally