WPO365 6.5 has 16 actions and 14 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WPO365 fires an action
add_action( 'wpo365/insights/notify', function( $error, $category ) {
// Your code runs here.
}, 10, 2 );
// Change a value WPO365 is about to use
add_filter( 'wpo365/cookie/set', function( $wpo_usr, $state ) {
// Change $wpo_usr here.
return $wpo_usr;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
wpo365/cookie/set
filter/** * Authenticate but don't sign in Entra ID users. */ apply_filters( 'wpo365/cookie/set', $wpo_usr, $state ); -
wpo365/aad/redirect_uri
filterapply_filters( 'wpo365/aad/redirect_uri', $_site_url ); -
wpo365/aad/params
filterapply_filters( 'wpo365/aad/params', $params, $application_id, $authorize_url ); -
wpo365/insights/notify
actiondo_action( 'wpo365/insights/notify', $error, $category ); -
destroy_wpo365_session
actiondo_action( 'destroy_wpo365_session' ); -
wp_login
actiondo_action( 'wp_login', $wp_usr->user_login, $wp_usr ); -
wpo365_skip_authentication
filterapply_filters( 'wpo365_skip_authentication', false ); -
wpo365/mail/sent/fail
actiondo_action( 'wpo365/mail/sent/fail', $message ); -
wpo365/wpmu/access_denied
actiondo_action( 'wpo365/wpmu/access_denied', $wp_usr_id ); -
login_redirect
filterapply_filters( 'login_redirect', $redirect_url, $redirect_url, $wp_usr ); -
do_action( 'wpo365_access_token_processed', $current_user_id, $access_token->access_token ); -
do_action( 'wpo365_openid_token_processed', $wp_usr->ID, $wpo_usr->groups, $id_token ); -
wpo365/apps/rewriteai/path
filterapply_filters( 'wpo365/apps/rewriteai/path', '' ); -
wpo365/cookie/redirect
actiondo_action( 'wpo365/cookie/redirect' ); -
wpo365/cookie/remove/url
filterapply_filters( 'wpo365/cookie/remove/url', $url ); -
apply_filters( 'wpo365/goodbye/error_page_uri', $error_page_url, get_current_user_id(), $login_error_code ); -
wpo365/mail/before
filterapply_filters( 'wpo365/mail/before', null ); -
apply_filters( 'wpo365/mail/mg_fetch_max_attempts', 3 ); -
apply_filters( 'wpo365/mail/mg_fetch_max_retry_wait', 5 ); -
wpo365/mail/sent
actiondo_action( 'wpo365/mail/sent', $log_message ); -
apply_filters( 'wpo365/media/skip_authentication', false ); -
wpo365/oidc/authenticated
actiondo_action( 'wpo365/oidc/authenticated', $wp_usr->ID ); -
wpo365/oidc/authenticating
actiondo_action( 'wpo365/oidc/authenticating', $wpo_usr->preferred_username, $wpo_usr->email, $wpo_usr->groups ); -
wpo365/oidc/params
filterapply_filters( 'wpo365/oidc/params', $params ); -
wpo365/saml/authenticated
actiondo_action( 'wpo365/saml/authenticated', $wp_usr->ID ); -
wpo365/saml2/authenticating
actiondo_action( 'wpo365/saml2/authenticating', $wpo_usr->preferred_username, $wpo_usr->email, $wpo_usr->groups ); -
wpo365/url_check/skip
filterapply_filters( 'wpo365/url_check/skip', false ); -
wpo365/user/created/fail
actiondo_action( 'wpo365/user/created/fail', $login_error_code ); -
wpo365/user/loggedin/fail
actiondo_action( 'wpo365/user/loggedin/fail', $login_error_code ); -
wpo365/wpmu/user_added
actiondo_action( 'wpo365/wpmu/user_added', $blog_id, $wp_usr_id );
Generated from WPO365's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: