Stream 4.5.1 has 16 actions and 81 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.
// Run your own code when Stream fires an action
add_action( 'wp_stream_auto_purge', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Stream is about to use
add_filter( 'wp_stream_alerts_save_meta', function( $alert_meta, $alert_type ) {
// Change $alert_meta here.
return $alert_meta;
}, 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
-
/** * This filter is documented in Jetpack. */ apply_filters( "jetpack_module_configurable_{$slug}", false ); -
wp_stream_alerts_save_meta
filter/** * Filter alert trigger meta before it is saved. */ apply_filters( 'wp_stream_alerts_save_meta', $alert_meta, $alert_type ); -
wp_stream_auto_purge
action/** * Fires once per auto-purge cycle, after all bail-out checks pass and * immediately before deletion work is enqueued. */ do_action( 'wp_stream_auto_purge' ); -
wp_stream_batch_size
filter/** * Filters the number of records in the {$wpdb->stream} table to do at a time. */ apply_filters( 'wp_stream_batch_size', 250000 ); -
wp_stream_db_driver
filter/** * Filter the database driver class name used by Stream. */ apply_filters( 'wp_stream_db_driver', '\WP_Stream\DB_Driver_WPDB' ); -
wp_stream_enable_auto_purge
filter/** * Filter whether Stream schedules its TTL record auto-purge at all. */ apply_filters( 'wp_stream_enable_auto_purge', true ); -
atom_head
action/** * Action fires during RSS head */ do_action( 'atom_head' ); -
atom_item
action/** * Action fires during Atom item */ do_action( 'atom_item' ); -
atom_ns
action/** * This action is documented in WordPress core (`atom_ns`). */ do_action( 'atom_ns' ); -
edd_api_log_requests
filter/** * This filter is documented in Easy Digital Downloads. */ apply_filters( 'edd_api_log_requests', true ); -
rss2_head
action/** * Action fires during RSS head */ do_action( 'rss2_head' ); -
rss2_item
action/** * Action fires during RSS item */ do_action( 'rss2_item' ); -
rss2_ns
action/** * Action fires during RSS xmls printing */ do_action( 'rss2_ns' ); -
sidebars_widgets
filter/** * Filter allows for insertion of sidebar widgets */ apply_filters( 'sidebars_widgets', get_option( 'sidebars_widgets', array() ) ); -
stream_noop_demo_clicked
action/** * Fires when the sample noop demo button is clicked. */ do_action( 'stream_noop_demo_clicked' ); -
stream_records_per_page
filter/** * Filter records per page for the Stream list table query. */ apply_filters( 'stream_records_per_page', $args['records_per_page'] ); -
/** * Filter the connector list returned by the get-connectors ability. */ apply_filters( 'wp_stream_abilities_connectors', $this->plugin->connectors->get_all( true ) ); -
/** * Allow devs to disable logging values of rendered forms */ apply_filters( 'wp_stream_acf_enable_value_logging', true ); -
wp_stream_action_link_url
filter/** * Filter the action link URL for Settings connector records. */ apply_filters( 'wp_stream_action_link_url', $url, $record ); -
/** * Filter allows modification of action links for a specific connector */ apply_filters( "wp_stream_action_links_{$record->connector}", array(), $record ); -
wp_stream_admin_body_classes
filter/** * Filter the Stream admin body classes */ apply_filters( 'wp_stream_admin_body_classes', $stream_classes ); -
wp_stream_admin_page_title
filter/** * Filter the main admin page title */ apply_filters( 'wp_stream_admin_page_title', esc_html__( 'Stream Records', 'stream' ) ); -
/** * Fires after all connectors have been registered. */ do_action( 'wp_stream_after_connectors_registration', $labels, $this ); -
wp_stream_after_list_table
action/** * Fires after the list table is displayed. */ do_action( 'wp_stream_after_list_table' ); -
wp_stream_agent_label
filter/** * Filter agent labels */ apply_filters( 'wp_stream_agent_label', $label, $agent ); -
/** * Filters the AI prompt text before Stream stores it. */ apply_filters( 'wp_stream_ai_client_log_prompt', $prompt_text, $event ); -
/** * Filters the AI response text before Stream stores it. */ apply_filters( 'wp_stream_ai_client_log_response', $response_text, $event ); -
/** * Filter the date format string */ apply_filters( 'wp_stream_alert_ifttt_date_format', 'Y-m-d H:i:s', $alert, $recordarr ); -
/** * Filter User data field. */ apply_filters( 'wp_stream_alert_ifttt_user_data_value', 'user_login', $alert, $recordarr ); -
/** * Filter the first IFTTT alert value */ apply_filters( 'wp_stream_alert_ifttt_value_one', $record_data['summary'], $alert, $recordarr ); -
/** * Filter the third IFTTT alert value */ apply_filters( 'wp_stream_alert_ifttt_value_three', $date, $alert, $recordarr ); -
/** * Filter the second IFTTT alert value */ apply_filters( 'wp_stream_alert_ifttt_value_two', $user_value, $user_id, $alert, $recordarr ); -
/** * Filter whether an alert trigger matches a record. */ apply_filters( 'wp_stream_alert_trigger_check', true, $record_id, $recordarr, $this ); -
/** * Fires when displaying the alert trigger form. */ do_action( 'wp_stream_alert_trigger_form_display', $form, $alert ); -
wp_stream_alert_triggers
filter/** * Allows for adding additional alert_triggers via classes that extend * Notifier. */ apply_filters( 'wp_stream_alert_triggers', $classes ); -
wp_stream_alert_types
filter/** * Allows for adding additional alert_types via classes that extend Notifier. */ apply_filters( 'wp_stream_alert_types', $classes ); -
wp_stream_blog_id_logged
filter/** * Filter the blog ID stored on a Stream record. */ apply_filters( 'wp_stream_blog_id_logged', get_current_blog_id() ); -
/** * The maximum number of items that can be updated in bulk without receiving a * warning. */ apply_filters( 'wp_stream_bulk_actions_threshold', 100 ); -
/** * Allows excluded connectors to be overridden and registered. */ apply_filters( 'wp_stream_check_connector_is_excluded', in_array( $connector->name, $excluded_connectors, true ), $connector->name, $excluded_connectors ); -
wp_stream_client_ip_address
filter/** * Filter the client IP address stored on Stream records. */ apply_filters( 'wp_stream_client_ip_address', $this->client_ip_address ); -
/** * Filter comment type labels for the Comments connector. */ apply_filters( 'wp_stream_comments_comment_type_labels', array( 'comment' => esc_html__( 'Comment', 'stream' ), 'trackback' => esc_html__( 'Trackback', 'stream' ), 'pingback' => esc_html__( 'Pingback', 'stream' ), ) ); -
/** * Filter excluded comment types for the Comments connector. */ apply_filters( 'wp_stream_comments_exclude_comment_types', array() ); -
wp_stream_connectors
filter/** * Allows for adding additional connectors via classes that extend Connector. */ apply_filters( 'wp_stream_connectors', $instances ); -
wp_stream_current_agent
filter/** * Filter the current agent string */ apply_filters( 'wp_stream_current_agent', $agent ); -
/** * Filter allows addition of custom links for a specific connector */ apply_filters( "wp_stream_custom_action_links_{$record->connector}", array(), $record ); -
wp_stream_db_count_query
filter/** * Filter allows the result count query to be modified before execution. */ apply_filters( 'wp_stream_db_count_query', $count_query, $args ); -
wp_stream_db_query
filter/** * Filter allows the final query to be modified before execution */ apply_filters( 'wp_stream_db_query', $query, $args ); -
wp_stream_db_query_where
filter/** * Filters query WHERE statement as an alternative to filtering the $query * using the hook below. */ apply_filters( 'wp_stream_db_query_where', $where ); -
wp_stream_db_tables_prefix
filter/** * Filter the database table prefix used for Stream tables. */ apply_filters( 'wp_stream_db_tables_prefix', $wpdb->base_prefix ); -
wp_stream_db_update_versions
filter/** * Filter to alter the DB update versions array */ apply_filters( 'wp_stream_db_update_versions', $db_update_versions ); -
wp_stream_editor_context
filter/** * Filter available contexts for the Editor connector */ apply_filters( 'wp_stream_editor_context', $context, $location ); -
/** * Filter available context labels for the Editor connector */ apply_filters( 'wp_stream_editor_context_labels', array( 'themes' => esc_html__( 'Themes', 'stream' ), 'plugins' => esc_html__( 'Plugins', 'stream' ), ) ); -
wp_stream_export_limit
filter/** * Filter to change how many records are exported. Increasing this too much * could cause your export to time out. */ apply_filters( 'wp_stream_export_limit', 10000 ); -
wp_stream_exporters
filter/** * Allows for adding additional exporters via classes that extend Exporter. */ apply_filters( 'wp_stream_exporters', $classes ); -
wp_stream_form_render_field
filter/** * Filter HTML for an unrecognized form field type. */ apply_filters( 'wp_stream_form_render_field', $output, $field_type, $args ); -
wp_stream_frontend_indicator
filter/** * Filter allows the HTML output of the frontend indicator comment to be * altered or removed, if desired. */ apply_filters( 'wp_stream_frontend_indicator', $comment ); -
/** * Filter the separator between role names in the author display. */ apply_filters( 'wp_stream_get_role_list_separator', ' - ' ); -
/** * Allows for the addition of content under a specified column. */ apply_filters( "wp_stream_insert_column_default_{$column_name}", $out, $record, $column_name ); -
/** * Filters whether or not the number of records should be considered a large * table. */ apply_filters( 'wp_stream_is_large_records_table', $record_number > 1000000, $record_number ); -
/** * Filter allows the network activated detection to be overridden. */ apply_filters( 'wp_stream_is_network_activated', $is_network_activated, $this ); -
wp_stream_is_option_ignored
filter/** * Filters the boolean output for is_option_ignored(). */ apply_filters( 'wp_stream_is_option_ignored', in_array( $option_name, $default_ignored, true ), $option_name, $default_ignored ); -
wp_stream_is_record_excluded
filter/** * Filters whether or not a record should be excluded from the log. */ apply_filters( 'wp_stream_is_record_excluded', $exclude_record, $record ); -
wp_stream_list_table_columns
filter/** * Allows devs to add new columns to table */ apply_filters( 'wp_stream_list_table_columns', array( 'date' => __( 'Date', 'stream' ), 'summary' => __( 'Summary', 'stream' ), 'user_id' => __( 'User', 'stream' ), 'context' => __( 'Context', 'stream' ), 'action' => __( 'Action', 'stream' ), 'ip' => __( 'IP Address', 'stream' ), ) ); -
wp_stream_list_table_filters
filter/** * Filter allows additional filters in the list table dropdowns Note the format * of the filters above, with they key and array containing a title and array * of items. */ apply_filters( 'wp_stream_list_table_filters', $filters ); -
/** * Filter the list table screen ID */ apply_filters( 'wp_stream_list_table_screen_id', $screen_id ); -
wp_stream_log_data
filter/** * Override the data logged. Returning false to this filter will stop the data * from being logged. Examples of this filter in use can be found in some of * the custom connectors. */ apply_filters( 'wp_stream_log_data', compact( 'connector', 'message', 'args', 'object_id', 'context', 'action', 'user_id' ) ); -
wp_stream_log_handler
filter/** * Filter the log handler instance used to persist Stream records. */ apply_filters( 'wp_stream_log_handler', new Log( $this ) ); -
/** * Filter hidden option fields on network settings when network activated. */ apply_filters( 'wp_stream_network_option_fields', array( 'general' => array( 'role_access', ), 'exclude' => array( 'authors', 'roles', 'connectors', 'contexts', 'actions', 'ip_addresses', 'hide_previous_records', ), ) ); -
/** * Filter excluded post types for the Posts connector. */ apply_filters( 'wp_stream_posts_exclude_post_types', array( 'nav_menu_item', 'attachment', 'revision', ) ); -
/** * Allow other plugins to filter the predefined date intervals. */ apply_filters( 'wp_stream_predefined_date_intervals', $date_intervals, $timezone ); -
wp_stream_preload_users_max
filter/** * Filters the maximum number of users preloaded into a picker. */ apply_filters( 'wp_stream_preload_users_max', $this->preload_users_max ); -
wp_stream_query_args
filter/** * Filter allows additional arguments to query $args */ apply_filters( 'wp_stream_query_args', $args ); -
wp_stream_query_properties
filter/** * Filter allows additional query properties to be added */ apply_filters( 'wp_stream_query_properties', $properties ); -
wp_stream_record_array
filter/** * Filter allows modification of record information */ apply_filters( 'wp_stream_record_array', $record ); -
wp_stream_record_classes
filter/** * Filter CSS classes on a Stream list table row. */ apply_filters( 'wp_stream_record_classes', array(), $item ); -
/** * Fires on a record insertion error */ do_action( 'wp_stream_record_insert_error', $record, false ); -
wp_stream_record_inserted
action/** * Fires after a record has been inserted */ do_action( 'wp_stream_record_inserted', $record_id, $record ); -
/** * Registers new Columns to be inserted into the table. The cell contents of * this column is set below with 'wp_stream_insert_column_default_' */ apply_filters_deprecated( 'wp_stream_register_column_defaults', array( array() ), sprintf( __( '%s of Stream', 'stream' ), '4.0.1' ), 'wp_stream_list_table_columns', __( 'This filter is being deprecated as it is redundant. You can define custom column names and titles using the `wp_stream_list_table_columns` filter then provide the value for the custom columns using the `wp_stream_insert_column_default_{$column_name}` filter.', 'stream' ) ); -
/** * Filters the alert_meta keys treated as credentials and withheld from ability * output. */ apply_filters( 'wp_stream_secret_alert_meta_keys', self::SECRET_ALERT_META_KEYS, $alert_meta ); -
wp_stream_serialized_labels
filter/** * Filter allows for insertion of serialized labels */ apply_filters( 'wp_stream_serialized_labels', $labels ); -
/** * Filter the settings form action URL. */ apply_filters( 'wp_stream_settings_form_action', admin_url( 'options.php' ) ); -
/** * Filter the settings page description. */ apply_filters( 'wp_stream_settings_form_description', '' ); -
/** * Filter the Settings admin page title */ apply_filters( 'wp_stream_settings_form_title', esc_html__( 'Stream Settings', 'stream' ) ); -
/** * Filter allows for modification of options fields */ apply_filters( 'wp_stream_settings_option_fields', $fields ); -
/** * Filter the settings option key. */ apply_filters( 'wp_stream_settings_option_key', $option_key ); -
wp_stream_settings_options
filter/** * Filter allows for modification of options */ apply_filters( 'wp_stream_settings_options', $options, $option_key ); -
/** * Filter excluded taxonomies for the Taxonomies connector. */ apply_filters( 'wp_stream_taxonomies_exclude_taxonomies', array( 'nav_menu', ) ); -
/** * Action fires during testing to test the current callback */ do_action( "wp_stream_test_{$callback[1]}" ); -
/** * Filter whether Stream uses Action Scheduler for its deferred work. */ apply_filters( 'wp_stream_use_action_scheduler', $this->action_scheduler_available ); -
/** * Filter WooCommerce connector context labels. */ apply_filters( 'wp_stream_woocommerce_contexts', $context_labels ); -
/** * Filter WooCommerce custom settings tracked by the connector. */ apply_filters( 'wp_stream_woocommerce_custom_settings', $custom_settings );
Generated from Stream'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: