All-in-One Utilities icon
Email & Marketing

All-in-One Utilities hooks reference

All-in-One Utilities 2.1.1 has 18 actions and 39 filters, read directly from its source code on Nov 19, 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 All-in-One Utilities fires an action
add_action( 'aiou_after_update_user_roles', function( $user_id, $roles ) {
	// Your code runs here.
}, 10, 2 );

// Change a value All-in-One Utilities is about to use
add_filter( 'aiou_about_products', function( $products ) {
	// Change $products here.
	return $products;
}, 10, 1 );

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

  • src/Admin/Screens/AboutScreen.php line 354
    /**
     * Filters the plugins listed on the About screen.
     */
    apply_filters( 'aiou_about_products', $products );
  • src/Modules/UserRoles/Roles.php line 135
    /**
     * Fires after a user's roles have been replaced.
     */
    do_action( 'aiou_after_update_user_roles', $user_id, $user->roles );
  • src/Modules/UserRoles/Roles.php line 114
    /**
     * Fires before a user's roles are replaced.
     */
    do_action( 'aiou_before_update_user_roles', $user_id, $roles );
  • src/Modules/Security/Ip.php line 96
    /**
     * Filters the visitor IP address used by security features.
     */
    apply_filters( 'aiou_client_ip', $ip );
  • src/Modules/CountryStates/Feature.php line 104
    /**
     * Filters the states Free adds for one country.
     */
    apply_filters( 'aiou_country_states_bundled', $list, $cc );
  • src/Modules/AdminCustomization/DashboardWidgets.php line 147
    /**
     * Filters which Dashboard widgets are removed for a user. Pro's role-based
     * Dashboard layout adds that user's role's choices.
     */
    apply_filters( 'aiou_dashboard_hidden_widgets', $hidden, $user );
  • src/Admin/Screens/DashboardScreen.php line 170
    /**
     * Filters which plugin a Dashboard widget belongs to ('free', 'pro', 'woo',
     * 'tools'), for its tint and badge.
     */
    apply_filters( 'aiou_dashboard_widget_owner', $owner, (string) $id );
  • src/Admin/Screens/DashboardScreen.php line 123
    /**
     * Fires while the Dashboard screen's own widgets are being registered, so Pro,
     * the Woo Add-on, the Tools add-on, or any future module can register its own
     * via `add_meta_box()` -- exactly how a real WordPress dashboard widget is
     * added (see `wp_add_dashboard_widget()`), just without that function's
     * dashboard-specific extras (per-widget "Configure" links, etc.) this screen
     * has no need for.
     */
    do_action( 'aiou_dashboard_widgets_setup', get_current_screen() );
  • src/Modules/DatabaseCleanup/AdminPage.php line 317
    /**
     * Fires after the cleanup list so Pro and the Woo Add-on can add their own
     * sections (e.g. Pro's database export/import) without a separate submenu
     * page.
     */
    do_action( 'aiou_database_cleanup_sections' );
  • src/Modules/DuplicateMenu/MenuDuplicator.php line 95
    /**
     * Fires after one menu item has been copied into the duplicate menu.
     */
    do_action( 'aiou_duplicate_menu_item_copied', $menu_item, $new_item_id, $new_menu_id );
  • src/Modules/DuplicatePosts/DuplicateFinder.php line 52
    /**
     * Filters the post statuses eligible for duplicate matching.
     */
    apply_filters( 'aiou_duplicate_posts_allowed_statuses', $statuses, $post_types );
  • src/Modules/DuplicatePosts/DuplicateFinder.php line 215
    /**
     * Short-circuits the duplicate count. Return an int to take over entirely
     * (used by Pro for its non-title comparison methods); return null (the
     * default) to run Free's own title-match count.
     */
    apply_filters( 'aiou_duplicate_posts_count', null );
  • src/Modules/DuplicatePosts/DuplicateFinder.php line 192
    /**
     * Filters whether duplicate removal should permanently delete instead of
     * moving to Trash.
     */
    apply_filters( 'aiou_duplicate_posts_force_delete', false );
  • src/Modules/DuplicatePosts/DuplicateFinder.php line 253
    /**
     * Short-circuits the duplicate pair list, the counterpart to the
     * `aiou_duplicate_posts_count` filter above -- see its docblock.
     */
    apply_filters( 'aiou_duplicate_posts_pairs', null, $limit, $offset );
  • src/Modules/DuplicatePosts/DuplicateFinder.php line 411
    /**
     * Fires after a duplicate post has been removed (trashed or permanently
     * deleted).
     */
    do_action( 'aiou_duplicate_posts_removed', $dupe_id, $org_id, $permanent, $old_permalink );
  • src/Modules/DuplicatePosts/AdminPage.php line 207
    /**
     * Fires after the activity log so Pro can add its own sections (e.g. managed
     * 301 redirects) without a separate submenu page.
     */
    do_action( 'aiou_duplicate_posts_sections' );
  • src/Modules/DuplicatePosts/DuplicateFinder.php line 327
    /**
     * Short-circuits pair re-validation for a non-title comparison method -- the
     * counterpart to `aiou_duplicate_posts_pairs` above.
     */
    apply_filters( 'aiou_duplicate_posts_valid_pair', null, $dupe, $org );
  • src/Modules/UserRoles/Roles.php line 61
    /**
     * Filters the roles the current user may assign via the checklist.
     */
    apply_filters( 'aiou_editable_user_roles', $roles );
  • src/Emails/Email.php line 327
    /**
     * Filters a composed email right before it's handed to wp_mail().
     */
    apply_filters( 'aiou_email_content', $content, $this, $values, $context );
  • src/Emails/Email.php line 412
    /**
     * Filters the branded header shown above every managed email's body (empty by
     * default; Pro's Email Branding fills it). Full-width: supply your own
     * padding.
     */
    apply_filters( 'aiou_email_header_html', '', $subject );
  • src/Emails/Email.php line 439
    /**
     * Filters the full HTML of an email built from a managed template.
     */
    apply_filters( 'aiou_email_html', $html, $body, $subject );
  • src/Modules/EmailLog/LogAdminPage.php line 313
    /**
     * Fires after the log's "Delete selected" button, inside the selection form
     * (Pro adds "Retry selected").
     */
    do_action( 'aiou_email_log_bulk_actions' );
  • src/Modules/EmailLog/LogAdminPage.php line 372
    /**
     * Fires after a log row's own actions (Pro adds "Retry").
     */
    do_action( 'aiou_email_log_row_actions', $row );
  • src/Emails/Email.php line 301
    /**
     * Filters the variable values for one email. Values a plugin's own email
     * already supplies should never be overridden -- add new tags only.
     */
    apply_filters( 'aiou_email_placeholders', $values, $this->id(), $context );
  • src/Emails/Email.php line 211
    /**
     * Filters the variables listed in an email's "Available variables" box. Add
     * entries as tag => [ 'description' => ..., 'owner' => ... ]; supply the
     * values themselves through `aiou_email_placeholders`.
     */
    apply_filters( 'aiou_email_variables', $variables, $this );
  • src/Modules/FeaturedImage/PostTypes.php line 45
    /**
     * Filters which post types are eligible for the default featured image.
     */
    apply_filters( 'aiou_featured_image_eligible_post_types', $eligible );
  • src/Admin/Screens/ImportExportScreen.php line 118
    /**
     * Fires after the Import/Export tab's sections (Pro adds Presets).
     */
    do_action( 'aiou_import_export_cards' );
  • src/Modules/LoginPage/Background.php line 98
    /**
     * Filters whether the Login Page background stylesheet is added. Pro's design
     * templates return false and apply the same color and image themselves.
     */
    apply_filters( 'aiou_login_background_css', true );
  • src/Modules/Security/LoginLimiter.php line 284
    /**
     * Fires when an address is locked out of logging in.
     */
    do_action( 'aiou_login_lockout', $ip, $entry['user'], $entry['until'], $long );
  • src/Modules/ModuleManager.php line 132
    /**
     * Filters which plugin a module's settings are attributed to.
     */
    apply_filters( 'aiou_module_owner', $owner, $module );
  • src/Modules/PostCloner/Cloner.php line 297
    /**
     * Fires after a post has been copied.
     */
    do_action( 'aiou_post_duplicated', $copy_id, $post );
  • src/Admin/Promotions.php line 207
    /**
     * Filters how long after install the review notice first appears.
     */
    apply_filters( 'aiou_promo_notice_delay', self::NOTICE_DELAY );
  • src/Modules/DisableFeatures/Feature.php line 533
    /**
     * Filters the REST route prefixes that stay open to visitors who aren't logged
     * in while the REST API is restricted.
     */
    apply_filters( 'aiou_public_rest_routes', array( '/wc/store/' ) );
  • src/Modules/ModuleManager.php line 77
    /**
     * Filters the list of modules to boot.
     */
    apply_filters( 'aiou_register_modules', $modules );
  • src/Admin/AdminShell.php line 526
    /**
     * Filters the wide promotion banners under the Settings and Tools screens'
     * content card.
     */
    apply_filters( 'aiou_settings_bottom_banners', array(), $page );
  • src/Admin/AdminShell.php line 469
    /**
     * Filters the list of promotion cards shown in the Settings and Tools screens'
     * right-hand column.
     */
    apply_filters( 'aiou_settings_promo_cards', array(), $page );
  • src/Admin/Settings/FieldRenderer.php line 52
    /**
     * Allows custom field types to be rendered.
     */
    apply_filters( 'aiou_settings_render_field', false, $field, $value, $name, $id );
  • src/Admin/Settings/FieldRenderer.php line 113
    /**
     * Fires for unrecognized field types so extensions can render them.
     */
    do_action( "aiou_settings_render_field_{$field->type}", $field, $value, $name, $id );
  • src/Admin/AdminShell.php line 442
    /**
     * Filters the dashicon shown in a settings section's title tile.
     */
    apply_filters( 'aiou_settings_section_icon', $icon, $tab_id, $section_id );
  • src/Admin/AdminShell.php line 317
    /**
     * Filters the dashicon shown beside a settings tab in the Settings screen's
     * left column.
     */
    apply_filters( 'aiou_settings_tab_icon', $icon, $tab_id );
  • src/Admin/Promotions.php line 110
    /**
     * Filters whether All-in-One Utilities shows its review and upgrade prompts:
     * the admin notice, the sidebar cards and the footer line.
     */
    apply_filters( 'aiou_show_promotions', true );
  • src/Admin/SupportRequest.php line 60
    /**
     * Filters the address System Report support requests are sent to.
     */
    apply_filters( 'aiou_support_email', self::SUPPORT_EMAIL );
  • src/Modules/UserSwitching/Feature.php line 364
    /**
     * Fires after an administrator switches back to their own account.
     */
    do_action( 'aiou_switched_back_user', $original->ID, $target_id );
  • src/Modules/UserSwitching/Feature.php line 322
    /**
     * Fires after an administrator switches to another user.
     */
    do_action( 'aiou_switched_to_user', $target->ID, $original->ID );
  • src/Admin/Screens/SystemReportScreen.php line 328
    /**
     * Filters the System Report's lines, so Pro, the Woo Add-on, or other modules
     * can append their own diagnostic sections.
     */
    apply_filters( 'aiou_system_report_lines', $lines );
  • src/Admin/Screens/ToolsScreen.php line 181
    /**
     * Fires to render one Tools tab's content.
     */
    do_action( "aiou_tools_tab_{$current}" );
  • src/Admin/Screens/ToolsScreen.php line 99
    /**
     * Filters the Tools screen's tabs. Render a tab's content on the
     * `aiou_tools_tab_{id}` action.
     */
    apply_filters( 'aiou_tools_tabs', $tabs );
  • src/Admin/Screens/ToolsScreen.php line 169
    /**
     * Fires on the Tools screen's General tab, for tools that aren't on a tab of
     * their own (e.g. the Woo Add-on's).
     */
    do_action( 'aiou_tools_widgets' );
  • src/Admin/UpgradeMenu.php line 70
    /**
     * Filters the yellow upgrade links under the admin menu.
     */
    apply_filters( 'aiou_upgrade_menu_items', $items );
  • src/Modules/UserRoles/Roles.php line 37
    /**
     * Filters the full list of roles this module is aware of.
     */
    apply_filters( 'aiou_user_roles', $wp_roles->role_names );
  • src/Modules/UsernameUpdater/Validator.php line 99
    /**
     * Filters whether a username is held for someone else, e.g. by Pro's pending
     * username change requests.
     */
    apply_filters( 'aiou_username_is_reserved', false, $username, $user );
  • src/Modules/UsernameUpdater/Service.php line 96
    /**
     * Fires after a username has been changed.
     */
    do_action( 'aiou_username_updated', $user_id, $old_username, $new_username );
  • src/Admin/Screens/LicenseScreen.php line 37
    apply_filters( 'aiou_license_products', array() );
  • src/Modules/UsernameUpdater/Validator.php line 83
    apply_filters( 'illegal_user_logins', array() );

Generated from All-in-One Utilities's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: