Valhalla for Vikinger 1.0.5 has 35 actions and 70 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 Valhalla for Vikinger fires an action
add_action( 'valhfovi_settings_saved', function( $section, $new, $old ) {
// Your code runs here.
}, 10, 3 );
// Change a value Valhalla for Vikinger is about to use
add_filter( 'valhfovi_sanitize_settings', function( $new, $section, $old ) {
// Change $new here.
return $new;
}, 10, 3 );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
-
/** * This filter is documented in includes/core/class-valhfovi-admin.php * (save_settings()). */ apply_filters( 'valhfovi_sanitize_settings', $new, $section, $old ); -
/** * This action is documented in includes/core/class-valhfovi-admin.php * (save_settings()). */ do_action( 'valhfovi_settings_saved', $section, $new, $old ); -
/** * This filter is documented in * buddypress/bp-activity/bp-activity-functions.php * (bp_activity_user_can_read()). */ apply_filters( 'bp_activity_user_can_read', true, 0, $object ); -
/** * BuddyPress prints the "You must indicate that you have read and agreed to * the Privacy Policy." error here (hooked by bp_core_screen_signup()). */ do_action( 'bp_signup_privacy_policy_errors' ); -
/** * Fires after the plugin was activated on a site. */ do_action( 'valhfovi_activated' ); -
/** * Filters the "Getting started" steps of the dashboard. */ apply_filters( 'valhfovi_admin_checklist_items', $items ); -
/** * Filters the Docs / Support links of the Valhalla screens and of the plugin's * row on the Plugins screen. Valhalla Pro points `support` to the store's * support tickets. */ apply_filters( 'valhfovi_admin_links', $links ); -
/** * Fires after announcements changed and the known page caches were purged * (hook custom/CDN purges here). */ do_action( 'valhfovi_ann_page_cache_purged' ); -
/** * Filters whether announcement changes purge the full-page caches. */ apply_filters( 'valhfovi_ann_purge_page_cache', true ); -
/** * Filters whether guest bars are filtered by the dismissal cookie on the * server (only safe on sites without a full-page cache). */ apply_filters( 'valhfovi_ann_server_guest_dismissals', false ); -
/** * Filters extra HTML printed inside the `[valhfovi_announcements]` output, * after the announcement boxes (e.g. a list of recent messages). Callbacks * must return escaped markup (it is also passed through wp_kses_post()); * return $html unchanged to add nothing. */ apply_filters( 'valhfovi_ann_shortcode_extra_html', '', $atts, $viewer, $raw_atts ); -
/** * Filters whether announcement bars are printed on the current page. */ apply_filters( 'valhfovi_ann_show_bars', true ); -
/** * Filters the announcements shown to a viewer. */ apply_filters( 'valhfovi_ann_visible_items', $out, (int) $user_id, $context ); -
/** * Fires after an announcement was deleted. */ do_action( 'valhfovi_announcement_deleted', $id ); -
/** * Fires after a member dismissed an announcement. */ do_action( 'valhfovi_announcement_dismissed', $user_id, (int) $item['id'] ); -
/** * Fires after an announcement was created or updated. */ do_action( 'valhfovi_announcement_saved', $item['id'], $item ); -
/** * Fires after the moderation tools deleted content. */ do_action( 'valhfovi_content_deleted', $type, (int) $id, (int) $by ); -
/** * Filters the core settings fields. */ apply_filters( 'valhfovi_core_settings_fields', $fields ); -
/** * Fires when the plugin is deactivated. */ do_action( 'valhfovi_deactivated' ); -
/** * Filters the front-end configuration. Modules add their data under * `modules.<id>`. */ apply_filters( 'valhfovi_frontend_config', $config ); -
/** * Filters the located template path. */ apply_filters( 'valhfovi_locate_template', $file, $template, $module_id ); -
/** * Filters the accent color of Valhalla emails. */ apply_filters( 'valhfovi_mail_accent_color', '#615dfa' ); -
/** * Filters the final email HTML. */ apply_filters( 'valhfovi_mail_html', $html, $to, $subject, $body_html ); -
/** * Filter the bulk actions that ask for a confirmation before they run. */ apply_filters( 'valhfovi_moderation_admin_dangerous_actions', array( 'delete' ) ); -
/** * Filter the error notices a moderation redirect can show (used for extension * actions). */ apply_filters( 'valhfovi_moderation_admin_error_messages', $messages ); -
/** * Filter the success notice of a moderation action (used for extension * actions). */ apply_filters( 'valhfovi_moderation_admin_message', $text, $code, $n ); -
/** * Render an extension screen of the moderation page * (?valhfovi_screen={screen}), e.g. the warn / suspend forms of Moderation * Pro. */ do_action( "valhfovi_moderation_admin_screen_{$screen}", $this ); -
/** * Filter the stat cards of the moderation screen. */ apply_filters( 'valhfovi_moderation_admin_stats', $stats ); -
/** * Render the content of an extension tab (added with * valhfovi_moderation_admin_tabs). */ do_action( "valhfovi_moderation_admin_tab_{$tab}", $this ); -
/** * Filter the counters shown next to the tab labels (slug => int). */ apply_filters( 'valhfovi_moderation_admin_tab_counts', $counts ); -
/** * Filter the tabs of the moderation screen (slug => label). A tab added here * is rendered by the `valhfovi_moderation_admin_tab_{slug}` action. */ apply_filters( 'valhfovi_moderation_admin_tabs', $tabs ); -
/** * Fires after a report was stored, with the item's open reports. */ do_action( 'valhfovi_moderation_after_report_saved', (int) $report_id, (string) $item_type, $item_id, $open_count, $reporter_ids ); -
/** * Filter the bulk actions of a moderation list view. Unknown actions are * handed to the `valhfovi_moderation_handle_bulk_action` action. */ apply_filters( 'valhfovi_moderation_bulk_actions', $actions, $this->view ); -
/** * Filter the data exposed to the browser as VALHFOVI_CONFIG.modules.moderation * (logged-in members only). Extensions add their own keys / i18n strings. */ apply_filters( 'valhfovi_moderation_frontend_config', $data, $user_id ); -
/** * Handle a row/bulk action the free module does not know (e.g. "warn", * "suspend_7" added by Moderation Pro). The nonce and the valhfovi_moderate * capability were verified; handlers must check finer permissions per item. */ do_action( 'valhfovi_moderation_handle_bulk_action', $action, $keys, $note, $result, $this ); -
/** * Filter the labels of the moderation log actions (slug => label). */ apply_filters( 'valhfovi_moderation_log_action_labels', $labels ); -
/** * Filter who receives moderation notifications. */ apply_filters( 'valhfovi_moderation_moderator_ids', $ids ); -
/** * Filter the placeholder of the note field above the queue / hidden lists. */ apply_filters( 'valhfovi_moderation_note_placeholder', __( 'Moderator note (optional)', 'valhalla-for-vikinger' ), $this->view ); -
/** * Filter the row actions of an item in the moderation lists. Use * $list_table->action_link() for nonced links handled by the * `valhfovi_moderation_handle_bulk_action` action; values are link HTML and * pass through valhfovi_kses_ui(). */ apply_filters( 'valhfovi_moderation_queue_row_actions', $actions, $item, $state, (int) $open, $this ); -
/** * Filter the list of report reasons. */ apply_filters( 'valhfovi_moderation_report_reasons', $reasons ); -
/** * Filter the resolved moderation preview of an item. */ apply_filters( 'valhfovi_moderation_resolve_item', $item, $type, $id ); -
/** * Filter the settings fields of the Moderation module (extensions append * rows). */ apply_filters( 'valhfovi_moderation_settings_fields', $fields, $this ); -
/** * Filter the status badges shown next to a member in the moderation lists * (e.g. "Suspended", "2 warnings"). Each badge is passed through * wp_kses_post(), typically '<span class="vhl-mod-pill * vhl-mod-pill--danger">…</span>'. */ apply_filters( 'valhfovi_moderation_user_badges', array(), $user_id ); -
/** * Fires when an enabled module whose requirements are met was not booted * because a `valhfovi_module_can_boot` callback refused it. */ do_action( 'valhfovi_module_blocked', $id, $reason, $module ); -
/** * Filters the explanation shown on the dashboard for a module that may not * boot. */ apply_filters( 'valhfovi_module_blocked_reason', '', $id, $module ); -
/** * Filters whether a module may boot (checked after the enable toggle and * requirements). */ apply_filters( 'valhfovi_module_can_boot', true, $id, $module ); -
/** * Filters the dashboard category of each module. */ apply_filters( 'valhfovi_module_categories', $defaults ); -
/** * Filters the labels of the module categories shown as filter chips on the * dashboard. */ apply_filters( 'valhfovi_module_category_labels', $labels ); -
/** * Filters the wording shown for a module that `valhfovi_module_can_boot` keeps * off, and the one link it may offer. An add-on that holds a module back words * it for its own reason. */ apply_filters( 'valhfovi_module_held_ui', $defaults, $id, $object ); -
/** * Filters the tier badge shown on a module card ('free', 'pro' or 'addon'). */ apply_filters( 'valhfovi_module_tier', $tier, $id, $module ); -
/** * Fires after a module was toggled. A module switched on is booted before this * fires (when its requirements are met); a module switched off is still booted * in this request. */ do_action( 'valhfovi_module_toggled', $id, $enable ); -
/** * Filters the module list (id => class name). Third parties may add modules: * either a class name already loaded, or array( 'class' => 'X', 'file' => * '/abs/module.php' ). */ apply_filters( 'valhfovi_modules', $map ); -
/** * Fires after modules were booted. */ do_action( 'valhfovi_modules_booted', $this ); -
/** * Fires after all modules were instantiated (before boot). */ do_action( 'valhfovi_modules_loaded', $this ); -
/** * Allows vetoing a notification (e.g. user preferences, blocking). */ apply_filters( 'valhfovi_notification_should_add', true, $user_id, $component_action, (int) $item_id, (int) $secondary_item_id ); -
/** * Lets the Valhalla Pro add-on describe its license state on the dashboard. */ apply_filters( 'valhfovi_pro_license_status', null ); -
/** * Filters the modules listed in the "Valhalla Pro" section of the dashboard. */ apply_filters( 'valhfovi_pro_modules', $modules ); -
/** * Filters the address of the Valhalla Pro page linked from the dashboard. */ apply_filters( 'valhfovi_pro_url', defined( 'VALHFOVI_PRO_URL' ) ? (string) VALHFOVI_PRO_URL : '' ); -
/** * Fires when a member added a reaction (confirmed in the database). */ do_action( 'valhfovi_reaction_added', $change['user_id'], $change['type'], $change['object_id'], $owner, $after ); -
/** * Fires when a member removed (or replaced) a reaction. */ do_action( 'valhfovi_reaction_removed', $change['user_id'], $change['type'], $change['object_id'], $owner, $change['before'] ); -
/** * Renders a custom field type. */ do_action( "valhfovi_render_field_{sanitize_key($type)}", $field, $value, $name, $html_id ); -
/** * Cross-module event. */ do_action( 'valhfovi_report_created', $report_id, $item_type, $item_id, $reporter_id ); -
/** * Cross-module event. */ do_action( 'valhfovi_report_resolved', (int) $row->id, $status, (int) $moderator_id ); -
/** * Filters whether a requirement is met. */ apply_filters( 'valhfovi_requirement_met', $met, $key ); -
/** * Filters the title of the blocks admin page (also used as the menu label). */ apply_filters( 'valhfovi_safety_admin_page_title', __( 'Blocks', 'valhalla-for-vikinger' ) ); -
/** * Filters the extra statistic cards shown on the blocks admin page. */ apply_filters( 'valhfovi_safety_admin_stat_cards', array(), $this->module ); -
/** * Renders extra sections on the Account Hub page "Privacy & Blocking", above * the blocked members list. Only fired for the hub owner. */ do_action( 'valhfovi_safety_hub_page_sections', $user_id ); -
/** * Filters the maximum number of members a member may block. */ apply_filters( 'valhfovi_safety_max_blocks', 1000, $user_id ); -
/** * Filters why a viewer may not see a member's profile. */ apply_filters( 'valhfovi_safety_profile_denial_reason', '', $viewer_id, $owner_id ); -
/** * Filters the protected member ids exposed to the front-end. */ apply_filters( 'valhfovi_safety_protected_ids', $ids ); -
/** * Filters the full-page template used for a restricted profile. */ apply_filters( 'valhfovi_safety_restricted_profile_template', $default, $this->private_context ); -
/** * Filters whether a member is protected from being blocked. */ apply_filters( 'valhfovi_safety_user_is_protected', $protected, $user_id ); -
/** * Filters whether a viewer bypasses members' profile restrictions. */ apply_filters( 'valhfovi_safety_viewer_bypasses_privacy', $bypass, $viewer_id ); -
/** * Sanitizes a value of a custom field type. */ apply_filters( "valhfovi_sanitize_field_{sanitize_key($type)}", is_scalar( $value ) ? sanitize_text_field( (string) $value ) : '', $field ); -
/** * Filters a settings export before it is downloaded. Never add secrets here. */ apply_filters( 'valhfovi_settings_export', $payload ); -
/** * Filters a module's settings fields. */ apply_filters( "valhfovi_settings_fields_{$id}", $fields, $module ); -
/** * Fires after a settings import was applied. */ do_action( 'valhfovi_settings_imported', $pending ); -
/** * Allows skipping the visibility filters for a query. */ apply_filters( 'valhfovi_skip_content_filters', false, $context, $args ); -
/** * Filters the page types the current request belongs to (banner switch). */ apply_filters( 'valhfovi_tweaks_banner_contexts', $contexts ); -
/** * Filters the generated CSS of the layout toggles. */ apply_filters( 'valhfovi_tweaks_css', $css ); -
/** * Filters the activity scopes treated as tabs of the main newsfeed (feed * controls apply to them). */ apply_filters( 'valhfovi_tweaks_feed_scopes', self::FEED_SCOPES ); -
/** * Filters the group activity types that "Keep group posts out of the main * newsfeed" leaves in. */ apply_filters( 'valhfovi_tweaks_group_event_types', self::GROUP_EVENT_TYPES ); -
/** * Filters the selectors of sticky sidebar columns. */ apply_filters( 'valhfovi_tweaks_sticky_selectors', $selectors ); -
/** * Filters the absolute timestamp format used for activity posts and comments. */ apply_filters( 'valhfovi_tweaks_timestamp_format', trim( $date_format . ' ' . $time_format ) ); -
/** * Fires after the plugin version changed (after install routines). */ do_action( 'valhfovi_upgraded', VALHFOVI_VERSION ); -
/** * Fires after a member blocked another member. */ do_action( 'valhfovi_user_blocked', $user_id, $target_id ); -
/** * Fires after a member unblocked another member. */ do_action( 'valhfovi_user_unblocked', $user_id, $target_id ); -
/** * Filters the theme folder names accepted as the Vikinger parent theme. */ apply_filters( 'valhfovi_vikinger_theme_slugs', $default ); -
apply_filters( 'valhfovi_can_interact', true, $initiator, $friend, 'friend' ); -
apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
apply_filters( 'document_title_separator', '-' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'rt_nginx_helper_purge_all' ); -
apply_filters( 'valhfovi_rate_limit_admins', false, $action ); -
apply_filters( 'valhfovi_trusted_ip_headers', array() ); -
do_action( 'wpfc_clear_all_cache' ); -
do_action( 'wphb_clear_page_cache' );
Generated from Valhalla for Vikinger'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: