Hubu Panel 1.2.1 has 52 actions and 97 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.
// Run your own code when Hubu Panel fires an action
add_action( 'wp_login', function( $user_login, $user ) {
// Your code runs here.
}, 10, 2 );
// Change a value Hubu Panel is about to use
add_filter( 'hubu_clear_data_on_uninstall', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * Whether to delete all of this site's Hubu data on uninstall. */ apply_filters( 'hubu_clear_data_on_uninstall', false ); -
/** * The option the registration form is read from. */ apply_filters( 'hubu/auth/form_option', $this->prefix ); -
/** * Filter whether this site can use a licence. */ apply_filters( 'hubu/connection/accepts_license', false ); -
/** * Fires when a user signs in, under WordPress core's own name. */ do_action( 'wp_login', $user->user_login, $user ); -
/** * Fires after user registration is processed. */ do_action( 'hubu_auth_after_user_registration', $user_id, $notification_enabled ); -
/** * Fires after nginx notice is removed. */ do_action( 'hubu_auth_nginx_notice_removed' ); -
/** * Fires after auth page global option is updated. */ do_action( 'hubu_auth_page_option_updated', $sanitized_page_id ); -
/** * Fires after REST API routes are registered. */ do_action( 'hubu_auth_rest_api_init', $this->container->get( Auth_Rest_Controller::class ) ); -
/** * Filter forgot password request data before processing. */ apply_filters( 'hubu_auth_rest_forgot_params', $params, $request ); -
/** * Filter forgot password response before returning. */ apply_filters( 'hubu_auth_rest_forgot_response', $result, $params, $request ); -
/** * Filter register request data before processing. */ apply_filters( 'hubu_auth_rest_register_params', $params, $request ); -
/** * Filter register response before returning. */ apply_filters( 'hubu_auth_rest_register_response', $result, $params, $request ); -
/** * Filter reset password request data before processing. */ apply_filters( 'hubu_auth_rest_reset_params', $params, $request ); -
/** * Filter reset password response before returning. */ apply_filters( 'hubu_auth_rest_reset_response', $result, $params, $request ); -
/** * Fires after authentication settings section is registered. */ do_action( 'hubu_auth_settings_registered' ); -
/** * Action fired after password is set */ do_action( 'hubu_auth_user_password_set', $user_id, $password ); -
/** * Action fired after password update */ do_action( 'hubu_auth_user_password_updated', $user_id ); -
/** * Filter notification message & arguments before adding. Pass a falsy value to * stop the notification from getting added. */ apply_filters( 'hubu/admin/add_notification', $notification ); -
/** * Print controls in the Hubu admin header, before the help button (the * editing-language switcher). */ do_action( 'hubu/admin/header_actions' ); -
/** * Filters the admin pages that are presented as tabs of one section. */ apply_filters( 'hubu/admin/page_tab_groups', $groups ); -
/** * Display tab content. */ apply_filters( 'hubu/admin/status_view', Admin_Helper::get_view( "status-{$current_tab}" ), $current_tab ); -
/** * Hook for adding additional content to the example tab. */ do_action( 'hubu/admin/status/after_example_content' ); -
/** * Hook for adding additional system information sections. */ do_action( 'hubu/admin/status/after_system_info' ); -
/** * Filters the built-in blocklist of known-conflicting assets. */ apply_filters( 'hubu/asset_cleanup/dev_blocklist', $blocklist ); -
/** * Filters the base protected-handle list. */ apply_filters( 'hubu/asset_cleanup/protected', self::PROTECTED ); -
/** * Filters the asset-cleanup rules. Pro providers (plugin toggles, scanner * selections, advanced editor) append here. */ apply_filters( 'hubu/asset_cleanup/rules', $rules, $scope ); -
/** * Filters the resolved asset-cleanup scope for the current request. */ apply_filters( 'hubu/asset_cleanup/scope', $scope ); -
/** * Under the sign-in card (the language picker for visitors). */ do_action( 'hubu/auth/after_card' ); -
/** * Filter the client address used for rate limiting. */ apply_filters( 'hubu/auth/client_ip', $ip ); -
/** * Filter one field's definition immediately before it is rendered. */ apply_filters( 'hubu/auth/field_view', $field ); -
/** * How many digits the code has — resolved ONCE. */ apply_filters( 'hubu/auth/otp_code_length', (int) Helper::get_settings( 'general.auth_otp_code_length', 6 ) ); -
/** * Filter the rate limit for an authentication action. */ apply_filters( 'hubu/auth/rate_limit', $limit, $action ); -
/** * Filter how long a throttled caller stays locked out. */ apply_filters( 'hubu/auth/rate_limit_lockout', $lockout, $action, $window ); -
/** * Fires when a caller is throttled. */ do_action( 'hubu/auth/rate_limited', $action, $identifier ); -
/** * Filters whether the site accepts new registrations. */ apply_filters( 'hubu/auth/registration_enabled', $is_open ); -
/** * Filters how a missing username is made at registration. */ apply_filters( 'hubu/auth/registration_username_mode', $mode ); -
/** * After the destinations the code went to (for example a "Wrong address? * Change it" control while an address is being verified). */ do_action( 'hubu/auth/two_steps_after_destinations', $hubu_two_steps_type, $hubu_auth_channels, $hubu_two_steps_token ); -
/** * Filter the two-steps page's heading and lead-in for one flow. */ apply_filters( 'hubu/auth/two_steps_copy', [ 'title' => __( 'Two Step Verification ', 'hubu-panel' ), 'intro' => __( 'We sent a verification code to your:', 'hubu-panel' ), ], $hubu_two_steps_type, $hubu_auth_channels ); -
/** * Fires when the site has been connected. */ do_action( 'hubu/connection/connected', $this->get() ); -
/** * Fires when the connection has ended: disconnected, revoked or removed. */ do_action( 'hubu/connection/disconnected' ); -
/** * Fires with a one-time licence code the customer agreed to use here. */ do_action( 'hubu/connection/license_code', $license['code'] ?? '', $license['license_id'] ?? '' ); -
/** * Filter what this site reports to hubu.pro. */ apply_filters( 'hubu/connection/site_report', $report ); -
/** * Filter the address of the store this site connects to. */ apply_filters( 'hubu/connection/store_url', $url ); -
/** * Filters a generated endpoint URL. */ apply_filters( 'hubu/endpoint_url', $url, $endpoint, $value, $permalink ); -
/** * The stored values of an option in the shape its declared paths use. */ apply_filters( "hubu/i18n/canonical/{$option}", $value ); -
/** * Fires after a language's values of one screen were saved. */ do_action( 'hubu/i18n/section_saved', $screen, $language ); -
/** * Filter where connecting the site starts. */ apply_filters( 'hubu/license/activate_url', hubu()->connection->start_url() ); -
/** * Filters whether the site holds an active Hubu Pro license. */ apply_filters( 'hubu/license/is_active', false ); -
/** * Filter how many days of delivery-log history to keep. */ apply_filters( 'hubu/notification/log_retention_days', self::DEFAULT_LOG_RETENTION_DAYS ); -
/** * Fires after a user's uploaded avatar has been removed. */ do_action( 'hubu/panel/avatar/deleted', $user_id ); -
/** * Filter the parts a caller needs to draw the fallback itself. */ apply_filters( 'hubu/panel/avatar/fallback_parts', [], $user_id ); -
/** * Filter the generated fallback avatar URL. */ apply_filters( 'hubu/panel/avatar/fallback_url', '', $user_id, $size, $this->policy->fallback_style() ); -
/** * Whether this address is known to have no Gravatar at all. */ apply_filters( 'hubu/panel/avatar/gravatar_absent', false, $user_id ); -
/** * Filter the Gravatar URL used for a user. */ apply_filters( 'hubu/panel/avatar/gravatar_url', '', $user_id, $size ); -
/** * Filter the avatar policy arguments. */ apply_filters( 'hubu/panel/avatar/policy', Avatar_Policy::defaults() ); -
/** * Filter the fully resolved avatar for a user. */ apply_filters( 'hubu/panel/avatar/resolved', $source, $user_id, $size ); -
/** * Filter the base directory avatars are written to. */ apply_filters( 'hubu/panel/avatar/upload_dir', $uploads['basedir'] . '/' . self::SUBDIR ); -
/** * Fires after an avatar has been written and persisted. */ do_action( 'hubu/panel/avatar/uploaded', $user_id, $avatar ); -
/** * Render a dashboard box from outside this plugin. */ apply_filters( 'hubu/panel/dashboard/render_box', false, $box, $dashboard ); -
/** * Filters the HTML allowed in a panel endpoint's rendered body. */ apply_filters( 'hubu/panel/endpoint_content_allowed_html', $allowed ); -
/** * Filter the row types the endpoints editor describes. */ apply_filters( 'hubu/panel/endpoint_tabs', array( array( 'id' => 'endpoint', 'title' => esc_html__( 'Add Endpoint', 'hubu-panel' ), 'title_by' => 'label', 'addable' => false, 'fields' => array( array( 'id' => 'label', 'type' => 'text', 'title' => esc_html__( 'Endpoint label', 'hubu-panel' ), 'desc' => esc_html__( 'Enter a name to identify this endpoint', 'hubu-panel' ), ), array( 'id' => 'slug', 'type' => 'text', 'title' => esc_html__( ... ); -
/** * Filter whether a user may open a panel endpoint. */ apply_filters( 'hubu/panel/endpoints/is_accessible', $accessible, $endpoint, $user_id ); -
/** * Filter the endpoint tree rendered in the panel side menu. */ apply_filters( 'hubu/panel/endpoints/tree', $items ); -
/** * Filter the attributes rendered on the panel <html> element. */ apply_filters( 'hubu/panel/html_attributes', [ 'data-skin' => 'default', 'data-bs-theme' => 'light', 'data-assets-path' => hubu()->plugin_url() . 'assets/', 'data-template' => 'vertical-menu-template-starter', 'data-textdirection' => \Hubu\Core\I18n\Language_Switch::is_rtl() ? 'rtl' : 'ltr', ] ); -
/** * Filter the layout marker classes on the panel <html> element. */ apply_filters( 'hubu/panel/html_classes', [ 'layout-navbar-fixed', 'layout-menu-fixed', 'layout-wide' ] ); -
/** * Above the content of a WooCommerce endpoint rendered inside the panel. */ do_action( 'hubu/panel/woocommerce/before_endpoint', $woo ); -
/** * Filters the phone element settings shown in the form builders. */ apply_filters( 'hubu/phone/builder_fields', $fields ); -
/** * Filters the complete phone payload sent to the front end. */ apply_filters( 'hubu/phone/config', $payload, $context ); -
/** * Filters the country list used by the phone field selectors. */ apply_filters( 'hubu/phone/countries', $countries ); -
/** * Filters the detected visitor country. */ apply_filters( 'hubu/phone/detected_country', $country ); -
/** * Filters the browser side geolocation endpoint. */ apply_filters( 'hubu/phone/geo_cache_ttl', WEEK_IN_SECONDS ); -
/** * Filters the browser side geolocation endpoint. */ apply_filters( 'hubu/phone/geo_endpoint', 'https://ipapi.co/json' ); -
/** * Filters the browser side geolocation endpoint. */ apply_filters( 'hubu/phone/geo_field', 'country_code' ); -
/** * Filters the extra i18n strings handed to intl-tel-input. */ apply_filters( 'hubu/phone/i18n', [], $context ); -
/** * Short circuits server side country detection. */ apply_filters( 'hubu/phone/pre_detect_country', null ); -
/** * Filters the raw phone settings before they are normalized. */ apply_filters( 'hubu/phone/settings', $settings, $context ); -
/** * Filters the module slugs a settings key may be prefixed with. */ apply_filters( 'hubu/settings/key_module_slugs', self::MODULE_SLUGS ); -
/** * Filters the canonical settings-section order. */ apply_filters( 'hubu/settings/section_priorities', self::TOP_LEVEL + self::SUB_SECTIONS ); -
/** * Request headers to read the client IP from, in priority order. */ apply_filters( 'hubu/trusted_proxy_headers', [] ); -
/** * Enable whitelabel. */ apply_filters( 'hubu/whitelabel', false ); -
apply_filters( 'hubu/panel/container_class', 'container-fluid' ); -
do_action( 'hubu/auth/after_register_form' ); -
apply_filters( 'hubu/auth/get_query_vars', Query::default_query_vars() ); -
do_action( 'hubu/log', sprintf( 'Schema %1$s did not verify; version left unrecorded so the next request retries. Missing: %2$s', $this->version(), implode( ', ', $missing ) ), 'ERROR', 'database' ); -
do_action( 'wpml_switch_language', $provider_code ); -
do_action( 'hubu_after_password_update', $current_user_id ); -
do_action( 'hubu_auth_reset_key_generated', $user->ID, $reset_key ); -
apply_filters( 'hubu_before_password_update', $password_data, $current_user_id ); -
apply_filters( 'hubu_is_auth_page', false ); -
apply_filters( 'hubu_is_panel_page', false ); -
apply_filters( 'hubu_password_strength_check', true, $password ); -
apply_filters( 'hubu/admin/create_tables', [], $modules ); -
apply_filters( 'hubu/admin/dashboard_view', Admin_Helper::get_view( "dashboard-{$current_tab}" ), $current_tab ); -
apply_filters( 'hubu/admin/sensitive_data_encryption', true ); -
apply_filters( 'hubu/admin/status_tabs', [ 'system' => [ 'label' => esc_html__( 'System Info', 'hubu-panel' ), 'icon' => 'dashicons-info', ], ] ); -
do_action( 'hubu/auth/after_login_form' ); -
apply_filters( 'hubu/auth/authentication_unique_fields', $unique ); -
do_action( 'hubu/auth/before_login_form' ); -
do_action( 'hubu/auth/before_register_form' ); -
apply_filters( 'hubu/auth/forgot_pass_form_fields', $forgot_fields ); -
apply_filters( 'hubu/auth/login_form_buttons', $login_buttons ); -
do_action( 'hubu/auth/login_form_end' ); -
apply_filters( 'hubu/auth/login_form_fields', $login_fields ); -
do_action( 'hubu/auth/login_form_start' ); -
do_action( 'hubu/auth/register_form_end' ); -
do_action( 'hubu/auth/register_form_start' ); -
apply_filters( 'hubu/auth/reset_pass_form_fields', $reset_fields ); -
apply_filters( 'hubu/auth/two_steps_channels', [ 'email', 'phone' ] ); -
apply_filters( 'hubu/connection/plan', '' ); -
apply_filters( 'hubu/is_endpoint_base_page', false ); -
do_action( 'hubu/loaded' ); -
do_action( 'hubu/module_changed', $module, $state ); -
do_action( 'hubu/panel/after_content' ); -
do_action( 'hubu/panel/after_content_view' ); -
do_action( 'hubu/panel/after_header' ); -
do_action( 'hubu/panel/after_header_bookmarks' ); -
do_action( 'hubu/panel/after_header_items' ); -
do_action( 'hubu/panel/before_content' ); -
do_action( 'hubu/panel/before_content_view' ); -
do_action( 'hubu/panel/before_header' ); -
do_action( 'hubu/panel/before_header_bookmarks' ); -
do_action( 'hubu/panel/before_header_items' ); -
apply_filters( 'hubu/panel/brand', [ 'name' => 'Hubu', 'logo' => HUBU_URL . 'assets/img/hubu-mark.svg', 'alt' => 'Hubu', 'width' => 32, 'height' => 32, 'url' => $brand_url ? $brand_url : home_url( '/' ), ] ); -
apply_filters( 'hubu/panel/clean_scripts', array() ); -
apply_filters( 'hubu/panel/clean_styles', array() ); -
do_action( 'hubu/panel/content' ); -
do_action( 'hubu/panel/dashboard/after_boxes' ); -
do_action( 'hubu/panel/dashboard/before_boxes' ); -
apply_filters( 'hubu/panel/endpoint_providers', array() ); -
apply_filters( 'hubu/panel/get_query_vars', Query::default_query_vars() ); -
apply_filters( 'hubu/panel/panel_url', $url, $page_id ); -
do_action( 'hubu/pro_badge' ); -
apply_filters( "hubu/settings/section/{$id}", $section['fields'] ); -
apply_filters( 'hubu/woocommerce/product_brand', $brand ); -
apply_filters( 'illegal_user_logins', array() ); -
apply_filters( 'plugin_locale', $locale, 'hubu-panel' ); -
do_action( "woocommerce_account_{$woo->endpoint}_endpoint", $woo->value ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_current_language', null ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpml_object_id', $id, $type, false, $provider_code ); -
apply_filters( 'wpml_permalink', $url, $provider_code ); -
apply_filters( 'wpml_post_language_details', null, $id ); -
apply_filters( 'wpml_setting', false, 'setup_complete' );
Generated from Hubu Panel'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: