WPCreatix ViewMeter 1.1.2 has 16 actions and 65 filters, read directly from its source code on Nov 18, 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 WPCreatix ViewMeter fires an action
add_action( 'viewmeter_aggregated', function( $processed ) {
// Your code runs here.
}, 10, 1 );
// Change a value WPCreatix ViewMeter is about to use
add_filter( 'viewmeter_is_trackable', function( $value, $arg2 ) {
// Change $value here.
return $value;
}, 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
-
/** * Whether this request may be counted at all. */ apply_filters( 'viewmeter_is_trackable', true, null ); -
/** * Filter the post a view is credited to. */ apply_filters( 'viewmeter_post_id', $post_id ); -
/** * Filter whether retention archives old raw rows instead of deleting them. */ apply_filters( 'viewmeter_archive_enabled', $enabled ); -
/** * This filter is documented in src/Dimensions/Places.php */ apply_filters( 'viewmeter_geo_lookup', null, $ip ); -
/** * This filter is documented in src/Tracking/Consent.php */ apply_filters( 'viewmeter_honour_dnt', (bool) Options::get( 'honour_dnt', false ) ); -
/** * Filter the ViewMeter add-ons this site reports. */ apply_filters( 'viewmeter_addons', $addons ); -
/** * Filter the browser patterns. */ apply_filters( 'viewmeter_agent_browser_patterns', $patterns ); -
/** * Filter the device patterns. */ apply_filters( 'viewmeter_agent_device_patterns', $patterns ); -
/** * Filter the operating system patterns. */ apply_filters( 'viewmeter_agent_os_patterns', $patterns ); -
/** * Fires after buffered hits have been written. */ do_action( 'viewmeter_aggregated', $processed ); -
/** * Filter the AI crawler tokens. */ apply_filters( 'viewmeter_ai_tokens', self::merge_live( 'ai', self::AI_TOKENS ) ); -
/** * Fires once an alert has been written to the log. */ do_action( 'viewmeter_alert_recorded', $entry ); -
/** * Filters whether anonymous mode is on. */ apply_filters( 'viewmeter_anonymous_mode', (bool) Options::get( 'anonymous_mode', false ) ); -
/** * Filter how long a restore suspends retention for. */ apply_filters( 'viewmeter_archive_restore_hold', self::HOLD ); -
/** * Fires after a pass of restoring. */ do_action( 'viewmeter_archive_restored', $copied, $done ); -
/** * Fires after a pass of archiving. */ do_action( 'viewmeter_archived', $moved, $done, $days ); -
/** * Filter the integrations booted on this request. */ apply_filters( 'viewmeter_boot_integrations', self::catalogue() ); -
/** * Fires once every ViewMeter feature has registered its hooks. */ do_action( 'viewmeter_booted', $this ); -
/** * Filters the Borlabs Cookie service group that counts as consent to * statistics. */ apply_filters( 'viewmeter_borlabs_group', 'statistics' ); -
/** * Filter the general crawler tokens. */ apply_filters( 'viewmeter_bot_tokens', self::merge_live( 'bot', self::BOT_TOKENS ) ); -
/** * Filter the bounce threshold, in milliseconds. */ apply_filters( 'viewmeter_bounce_ms', $seconds * 1000 ); -
/** * Filter which roles hold each ViewMeter capability. */ apply_filters( 'viewmeter_capability_role_map', $map ); -
/** * Filter the detected conflicts. */ apply_filters( 'viewmeter_conflicts', $found ); -
/** * Fires after a count has been set by hand. */ do_action( 'viewmeter_count_edited', $post_id, $views ); -
/** * Filters the authority score for one referring domain. */ apply_filters( 'viewmeter_domain_authority', null, $host ); -
/** * Filter the data an email report is built from. */ apply_filters( 'viewmeter_email_report', $report, $period ); -
/** * Fires on a ViewMeter admin screen, before this plugin's bundle is enqueued. */ do_action( 'viewmeter_enqueue_admin_assets', (string) $hook_suffix ); -
/** * Filter the exclusion decision. */ apply_filters( 'viewmeter_exclusion', '', $context ); -
/** * Filters the features booted on this request. */ apply_filters( 'viewmeter_features', $ordered ); -
/** * Filter whether the geolocation database updates itself. */ apply_filters( 'viewmeter_geo_auto_update', $enabled ); -
/** * Filter the country recorded for addresses nothing could place. */ apply_filters( 'viewmeter_geo_fallback_country', $code ); -
/** * Filter the CDN headers consulted for location. */ apply_filters( 'viewmeter_geo_headers', $headers ); -
/** * Fires after a geolocation database is installed. */ do_action( 'viewmeter_geo_installed', self::meta() ); -
/** * Filter the detected location. */ apply_filters( 'viewmeter_geo_location', $found ); -
/** * Filter which database the updater fetches. */ apply_filters( 'viewmeter_geo_source', $id ); -
/** * Filter the databases ViewMeter will download. */ apply_filters( 'viewmeter_geo_sources', $sources ); -
/** * Filter the browser automation tokens. */ apply_filters( 'viewmeter_headless_tokens', self::merge_live( 'headless', self::HEADLESS_TOKENS ) ); -
/** * Fires when the operator accepts that this data belongs here after all. */ do_action( 'viewmeter_identity_acknowledged' ); -
/** * Fires when the statistics in this database look as though they came from * another site. */ do_action( 'viewmeter_identity_mismatch', $detail ); -
/** * Filter the integrations ViewMeter knows about. */ apply_filters( 'viewmeter_integrations', $integrations ); -
/** * Filter the headers consulted for the client address, in priority order. */ apply_filters( 'viewmeter_ip_headers', $headers ); -
/** * Fires once a milestone run has been written to the log. */ do_action( 'viewmeter_milestone_recorded', $outcome, $announced, $note ); -
/** * Filter one row's markup. */ apply_filters( 'viewmeter_most_viewed_item_html', $html, $row, $args ); -
/** * Filter the post a translation is counted against. */ apply_filters( 'viewmeter_multilingual_source_id', $source, $post_id ); -
/** * Filters the organisation name for a visitor's network, before any lookup is * attempted. */ apply_filters( 'viewmeter_network_org', '', $ip ); -
/** * Filter whether ViewMeter notices which hostnames this install answers on. */ apply_filters( 'viewmeter_observe_hosts', $enabled ); -
/** * Filter the parsed user agent. */ apply_filters( 'viewmeter_parsed_agent', $parsed, $user_agent ); -
/** * Filter the hostnames allowed their own row in the host dimension. */ apply_filters( 'viewmeter_permitted_hosts', $hosts ); -
/** * Fires after a retention run. */ do_action( 'viewmeter_pruned', $deleted, $days ); -
/** * Filters the web app manifest served for the ViewMeter screens. */ apply_filters( 'viewmeter_pwa_manifest', $manifest ); -
/** * Filters the Real Cookie Banner service name ViewMeter looks for. */ apply_filters( 'viewmeter_rcb_service', 'viewmeter' ); -
/** * Filters the display name of a referring host. */ apply_filters( 'viewmeter_referrer_label', $label, $host ); -
/** * Filters the hosts treated as referrer spam. */ apply_filters( 'viewmeter_referrer_spam_list', self::SPAM_HOSTS ); -
/** * Filters the type assigned to a referring host. */ apply_filters( 'viewmeter_referrer_type', $type, $host ); -
/** * Fires once a report attempt has been written to the log. */ do_action( 'viewmeter_report_recorded', $outcome, array_values( $to ), $error ); -
/** * Filters the controllers whose routes are published. */ apply_filters( 'viewmeter_rest_controllers', $this->controllers ); -
/** * Filters what ViewMeter believes it can read an SEO score from. */ apply_filters( 'viewmeter_seo_provider', $found ); -
/** * Filters what stops server-side counting on this site. */ apply_filters( 'viewmeter_server_count_blocked', $reason ); -
/** * Filter the settings schema. */ apply_filters( 'viewmeter_settings_schema', $fields ); -
/** * Filters the rows in this plugin's Site Health section. */ apply_filters( 'viewmeter_site_health_fields', $fields ); -
/** * Filters whether a split test is running on this site. */ apply_filters( 'viewmeter_split_testing', $verdict ); -
/** * Filter where crawler signatures are fetched from. */ apply_filters( 'viewmeter_token_source', self::SOURCE ); -
/** * Fires when a tracking failure is recorded. */ do_action( 'viewmeter_tracking_failure', $entry['code'], $entry['detail'] ); -
/** * Filters the languages ViewMeter offers to translate stored labels into. */ apply_filters( 'viewmeter_translate_languages', $codes, $source ); -
/** * Filters the provider object built for one slug. */ apply_filters( 'viewmeter_translate_provider', $built, $slug, $secret ); -
/** * Filters the translation services ViewMeter offers. */ apply_filters( 'viewmeter_translate_providers', $providers ); -
/** * Filters the language stored labels are assumed to be written in. */ apply_filters( 'viewmeter_translate_source_language', $default ); -
/** * Filters a stored label into another language, before any provider is asked. */ apply_filters( 'viewmeter_translate_string', null, $text, $target, $source, $context ); -
/** * Filters every translatable label on this site, so another plugin can add its * own. */ apply_filters( 'viewmeter_translation_subject_list', $subjects ); -
/** * Filters the stored label for a subject kind this plugin does not store * itself. */ apply_filters( 'viewmeter_translation_subject_text', '', $kind, $id ); -
/** * Filters the subject kinds whose stored labels may be translated. */ apply_filters( 'viewmeter_translation_subjects', self::KINDS ); -
/** * Filter the number of days an admin list-column sparkline covers. */ apply_filters( 'viewmeter_trend_days', $days ); -
/** * Filters the reading rate estimates are computed at. */ apply_filters( 'viewmeter_words_per_minute', self::WORDS_PER_MINUTE ); -
apply_filters( 'wpml_active_languages', null ); -
apply_filters( 'wpml_default_language', null ); -
apply_filters( 'wpcreatix_bridge_client_ask', true, (string) $slug ); -
apply_filters( 'wpcreatix_bridge_client_features', array(), $slug ); -
do_action( 'wpcreatix_bridge_client_newsletter', self::PRODUCT ); -
apply_filters( 'wpml_object_id', $post_id, $type, true, $default ); -
do_action( 'wpml_register_single_string', self::STRING_CONTEXT, self::STRING_NAME, $label ); -
apply_filters( 'wpml_translate_single_string', $label, self::STRING_CONTEXT, self::STRING_NAME );
Generated from WPCreatix ViewMeter'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: