WPO365 icon
Email & Marketing

WPO365 hooks reference

  • By Marco van Wieren
  • v6.5 New
  • Updated

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.

functions.phpyour child theme
// 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

  • Core/Shortcode_Helpers.php line 488 · used in 10 places
    apply_filters( 'wpo365/aad/redirect_uri', $_site_url );
  • Mail/Mail_Authorization_Helpers.php line 642 · used in 4 places
    apply_filters( 'wpo365/aad/params', $params, $application_id, $authorize_url );
  • Insights/Event_Service.php line 115 · used in 3 places
    do_action( 'wpo365/insights/notify', $error, $category );
  • Services/Authentication_Service.php line 104 · used in 2 places
    do_action( 'destroy_wpo365_session' );
  • wp_login

    action
    Services/Authentication_Service.php line 220 · used in 2 places
    do_action( 'wp_login', $wp_usr->user_login, $wp_usr );
  • Services/Authentication_Service.php line 1187 · used in 2 places
    apply_filters( 'wpo365_skip_authentication', false );
  • Mail/Mailer.php line 78 · used in 2 places
    do_action( 'wpo365/mail/sent/fail', $message );
  • Core/Wpmu_Helpers.php line 233 · used in 2 places
    do_action( 'wpo365/wpmu/access_denied', $wp_usr_id );
  • Core/Url_Helpers.php line 481
    apply_filters( 'login_redirect', $redirect_url, $redirect_url, $wp_usr );
  • Services/Access_Token_Service.php line 285
    do_action( 'wpo365_access_token_processed', $current_user_id, $access_token->access_token );
  • Services/Authentication_Service.php line 232
    do_action( 'wpo365_openid_token_processed', $wp_usr->ID, $wpo_usr->groups, $id_token );
  • Core/Script_Helpers.php line 186
    apply_filters( 'wpo365/apps/rewriteai/path', '' );
  • Services/Authentication_Service.php line 796
    apply_filters( 'wpo365/goodbye/error_page_uri', $error_page_url, get_current_user_id(), $login_error_code );
  • Mail/Mailer.php line 384
    apply_filters( 'wpo365/mail/before', null );
  • Mail/Mailer.php line 655
    apply_filters( 'wpo365/mail/mg_fetch_max_attempts', 3 );
  • Mail/Mailer.php line 656
    apply_filters( 'wpo365/mail/mg_fetch_max_retry_wait', 5 );
  • Mail/Mailer.php line 773
    do_action( 'wpo365/mail/sent', $log_message );
  • Services/Authentication_Service.php line 879
    apply_filters( 'wpo365/media/skip_authentication', false );
  • Services/Authentication_Service.php line 238
    do_action( 'wpo365/oidc/authenticated', $wp_usr->ID );
  • Services/Authentication_Service.php line 159
    do_action( 'wpo365/oidc/authenticating', $wpo_usr->preferred_username, $wpo_usr->email, $wpo_usr->groups );
  • Services/Id_Token_Service.php line 171
    apply_filters( 'wpo365/oidc/params', $params );
  • Services/Authentication_Service.php line 373
    do_action( 'wpo365/saml/authenticated', $wp_usr->ID );
  • Services/Authentication_Service.php line 307
    do_action( 'wpo365/saml2/authenticating', $wpo_usr->preferred_username, $wpo_usr->email, $wpo_usr->groups );
  • Core/Url_Helpers.php line 487
    apply_filters( 'wpo365/url_check/skip', false );
  • Services/Authentication_Service.php line 712
    do_action( 'wpo365/user/created/fail', $login_error_code );
  • Services/Authentication_Service.php line 710
    do_action( 'wpo365/user/loggedin/fail', $login_error_code );
  • Core/Wpmu_Helpers.php line 274
    do_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: