MainWP Child Reports icon
Analytics & Tracking

MainWP Child Reports hooks reference

  • By mainwp
  • v2.3.1
  • Updated

MainWP Child Reports 2.3.1 has 20 actions and 58 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.

functions.phpyour child theme
// Run your own code when MainWP Child Reports fires an action
add_action( 'atom_head', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value MainWP Child Reports is about to use
add_filter( 'sidebars_widgets', function( $option ) {
	// Change $option here.
	return $option;
}, 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

  • atom_head

    action
    includes/feeds/atom.php line 21
    /**
     * Action fires during RSS head
     */
    do_action( 'atom_head' );
  • atom_item

    action
    includes/feeds/atom.php line 51
    /**
     * Action fires during Atom item
     */
    do_action( 'atom_item' );
  • rss2_head

    action
    includes/feeds/rss-2.0.php line 35
    /**
     * Action fires during RSS head
     */
    do_action( 'rss2_head' );
  • rss2_item

    action
    includes/feeds/rss-2.0.php line 62
    /**
     * Action fires during RSS item
     */
    do_action( 'rss2_item' );
  • rss2_ns

    action
    includes/feeds/rss-2.0.php line 19
    /**
     * Action fires during RSS xmls printing
     */
    do_action( 'rss2_ns' );
  • connectors/class-connector-widgets.php line 860
    /**
     * Filter allows for insertion of sidebar widgets
     */
    apply_filters( 'sidebars_widgets', get_option( 'sidebars_widgets', array() ) );
  • connectors/class-connector-acf.php line 134
    /**
     * Allow devs to disable logging values of rendered forms.
     */
    apply_filters( 'wp_mainwp_stream_acf_enable_value_logging', true );
  • classes/class-admin.php line 513
    /**
     * Filter the Stream admin body classes.
     */
    apply_filters( 'wp_mainwp_stream_admin_body_classes', $stream_classes );
  • classes/class-admin.php line 301
    /**
     * Fires before submenu items are added to the Stream menu allowing plugins to
     * add menu items before Settings.
     */
    do_action( 'wp_mainwp_stream_admin_menu' );
  • classes/class-admin.php line 326
    /**
     * Fires just before the Stream list table is registered.
     */
    do_action( 'wp_mainwp_stream_admin_menu_screens' );
  • classes/class-admin.php line 267
    /**
     * Filter the main admin menu title.
     */
    apply_filters( 'wp_mainwp_stream_admin_menu_title', esc_html__( 'MainWP Child Reports', 'mainwp-child-reports' ) );
  • classes/class-admin.php line 283
    /**
     * Filter the main admin page title.
     */
    apply_filters( 'wp_mainwp_stream_admin_page_title', esc_html__( 'Reports Records', 'mainwp-child-reports' ) );
  • classes/class-connectors.php line 245
    /**
     * Fires after all connectors have been registered.
     */
    do_action( 'wp_mainwp_stream_after_connectors_registration', $labels, $this );
  • classes/class-list-table.php line 1073
    /**
     * Fires after the list table is displayed.
     */
    do_action( 'wp_mainwp_stream_after_list_table' );
  • classes/class-author.php line 301
    /**
     * Filter agent labels
     */
    apply_filters( 'wp_mainwp_stream_agent_label', $label, $agent );
  • classes/class-settings.php line 1270
    /**
     * Action assists in purging when TTL is shortened
     */
    do_action( 'wp_mainwp_stream_auto_purge' );
  • classes/class-install.php line 205
    /**
     * Fires before admin notices are triggered for missing database tables.
     */
    do_action( 'wp_mainwp_stream_before_db_notices' );
  • classes/class-admin.php line 446
    /**
     * The maximum number of items that can be updated in bulk without receiving a
     * warning.
     */
    apply_filters( 'wp_mainwp_stream_bulk_actions_threshold', 100 );
  • classes/class-connectors.php line 215
    /**
     * Allows excluded connectors to be overridden and registered.
     */
    apply_filters( 'wp_mainwp_stream_check_connector_is_excluded', $is_excluded, $connector_name, $excluded_connectors );
  • classes/class-connectors.php line 155
    /**
     * Allows for adding additional connectors via classes that extend Connector.
     */
    apply_filters( 'wp_mainwp_stream_connectors', $classes );
  • classes/class-author.php line 273
    /**
     * Filter the current agent string
     */
    apply_filters( 'wp_mainwp_stream_current_agent', $agent );
  • classes/class-query.php line 295
    /**
     * Filter allows the final query to be modified before execution
     */
    apply_filters( 'wp_mainwp_stream_db_query', $query, $args );
  • classes/class-install.php line 464
    /**
     * Filter to alter the DB update versions array
     */
    apply_filters( 'wp_mainwp_stream_db_update_versions', $db_update_versions );
  • connectors/class-connector-editor.php line 125
    /**
     * Filter available contexts for the Editor connector
     */
    apply_filters( 'wp_mainwp_stream_editor_context', $context, $location );
  • connectors/class-connector-editor.php line 92
    /**
     * Filter available context labels for the Editor connector
     */
    apply_filters( 'wp_mainwp_stream_editor_context_labels', array( 'themes' => esc_html__( 'Themes', 'mainwp-child-reports' ), 'plugins' => esc_html__( 'Plugins', 'mainwp-child-reports' ), ) );
  • classes/class-export.php line 224
    /**
     * Allows for adding additional exporters via classes that extend Exporter.
     */
    apply_filters( 'wp_mainwp_stream_exporters', $classes );
  • classes/class-list-table.php line 404
    /**
     * Allows for the addition of content under a specified column.
     */
    apply_filters( "wp_mainwp_stream_insert_column_default_{$column_title}", $column_name, $record );
  • classes/class-log.php line 308
    /**
     * Filters whether or not a record should be excluded from the log.
     */
    apply_filters( 'wp_mainwp_stream_is_record_excluded', $exclude_record, $record );
  • classes/class-list-table.php line 691
    /**
     * 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_mainwp_stream_list_table_filters', $filters );
  • classes/class-admin.php line 276
    /**
     * Filter the main admin menu position.
     */
    apply_filters( 'wp_mainwp_stream_menu_position', '2.999999' );
  • classes/class-install.php line 190
    /**
     * Filter will halt install() if set to true
     */
    apply_filters( 'wp_mainwp_stream_no_tables', false );
  • classes/class-db.php line 218
    /**
     * Filter allows additional arguments to query $args
     */
    apply_filters( 'wp_mainwp_stream_query_args', $args );
  • classes/class-db.php line 199
    /**
     * Filter allows additional query properties to be added
     */
    apply_filters( 'wp_mainwp_stream_query_properties', $properties );
  • classes/class-list-table.php line 982
    /**
     * Filter the records screen actions dropdown menu.
     */
    apply_filters( 'wp_mainwp_stream_record_actions_menu', array() );
  • classes/class-db.php line 69
    /**
     * Filter allows modification of record information
     */
    apply_filters( 'wp_mainwp_stream_record_array', $record );
  • classes/class-db.php line 87
    /**
     * Fires on a record insertion error
     */
    do_action( 'wp_mainwp_stream_record_insert_error', $record, false );
  • classes/class-db.php line 98
    /**
     * Fires after a record has been inserted
     */
    do_action( 'wp_mainwp_stream_record_inserted', $record_id, $record );
  • connectors/class-connector-settings.php line 458
    /**
     * Filter allows for insertion of serialized labels.
     */
    apply_filters( 'wp_mainwp_stream_serialized_labels', $labels );
  • classes/class-admin.php line 308
    /**
     * Filter the Settings admin page title.
     */
    apply_filters( 'wp_mainwp_stream_settings_form_title', esc_html__( 'Reports Settings', 'mainwp-child-reports' ) );
  • classes/class-settings.php line 465
    /**
     * Filter allows for modification of options fields
     */
    apply_filters( 'wp_mainwp_stream_settings_option_fields', $fields );
  • classes/class-settings.php line 503
    /**
     * Filter allows for modification of options
     */
    apply_filters( 'wp_mainwp_stream_settings_options', wp_parse_args( is_network_admin() ? (array) get_site_option( $option_key, array() ) : (array) get_option( $option_key, array() ), $defaults ), $option_key );
  • classes/class-connector.php line 122
    /**
     * Action fires during testing to test the current callback
     */
    do_action( "wp_mainwp_stream_test_{$callback[1]}" );
  • connectors/class-connector-jetpack.php line 142 · used in 2 places
    apply_filters( "jetpack_module_configurable_{$slug}", false );
  • classes/class-mainwp-child-report-helper.php line 434 · used in 2 places
    do_action( 'mainwp-child-pageheader', 'reports-page' );
  • classes/class-plugin.php line 81 · used in 2 places
    apply_filters( 'wp_mainwp_stream_db_driver', '\WP_MainWP_Stream\DB_Driver_WPDB' );
  • atom_ns

    action
    includes/feeds/atom.php line 8
    do_action( 'atom_ns' );
  • connectors/class-connector-edd.php line 185
    apply_filters( 'edd_api_log_requests', true );
  • classes/class-mainwp-child-report-helper.php line 376
    do_action( 'mainwp_child_log', $ext_name );
  • classes/class-list-table.php line 262
    apply_filters( 'mainwp_stream_records_per_page', $args['records_per_page'] );
  • classes/class-mainwp-child-report-helper.php line 444
    apply_filters( 'mainwp_wp_stream_settings_form_action', admin_url( 'options.php' ) );
  • classes/class-mainwp-child-report-helper.php line 365
    do_action( 'updraftplus_backup', $destination, $message, __( 'Finished', 'mainwp-child-reports' ), $backup_type, $backup_time );
  • classes/class-admin.php line 611
    do_action( 'wp_mainwp_child_reposts_recreate_tables_if_not_exist' );
  • classes/class-log.php line 173
    apply_filters( 'wp_mainwp_stream_blog_id_logged', get_current_blog_id() );
  • connectors/class-connector-comments.php line 101
    apply_filters( 'wp_mainwp_stream_comments_comment_type_labels', array( 'comment' => esc_html__( 'Comment', 'mainwp-child-reports' ), 'trackback' => esc_html__( 'Trackback', 'mainwp-child-reports' ), 'pingback' => esc_html__( 'Pingback', 'mainwp-child-reports' ), ) );
  • connectors/class-connector-comments.php line 661
    apply_filters( 'wp_mainwp_stream_comments_exclude_comment_types', array() );
  • classes/class-db-driver-wpdb.php line 52
    apply_filters( 'wp_mainwp_stream_db_tables_prefix', $wpdb->base_prefix );
  • classes/class-form-generator.php line 208
    apply_filters( 'wp_mainwp_stream_form_render_field', $output, $field_type, $args );
  • classes/class-network.php line 240
    apply_filters( 'wp_mainwp_stream_hidden_option_fields', array( 'general' => array( 'records_ttl', ), 'advanced' => array( 'delete_all_records', ), ) );
  • classes/class-list-table.php line 106
    apply_filters( 'wp_mainwp_stream_list_table_columns', array( 'date' => __( 'Date', 'mainwp-child-reports' ), 'summary' => __( 'Summary', 'mainwp-child-reports' ), 'user_id' => __( 'User', 'mainwp-child-reports' ), 'context' => __( 'Context', 'mainwp-child-reports' ), 'action' => __( 'Action', 'mainwp-child-reports' ), 'ip' => __( 'IP Address', 'mainwp-child-reports' ), ) );
  • classes/class-list-table.php line 41
    apply_filters( 'wp_mainwp_stream_list_table_screen_id', $screen_id );
  • classes/class-connector.php line 161
    apply_filters( 'wp_mainwp_stream_log_data', compact( 'connector', 'message', 'args', 'object_id', 'context', 'action', 'user_id', 'forced_log' ) );
  • classes/class-plugin.php line 107
    apply_filters( 'wp_mainwp_stream_log_handler', new Log( $this ) );
  • classes/class-network.php line 252
    apply_filters( 'wp_mainwp_stream_network_option_fields', array( 'general' => array( 'role_access', ), 'exclude' => array( 'authors', 'roles', 'connectors', 'contexts', 'actions', 'ip_addresses', 'hide_previous_records', ), ) );
  • connectors/class-connector-posts.php line 390
    apply_filters( 'wp_mainwp_stream_posts_allow_post_types', array( 'page', 'post', 'shop_order', ) );
  • connectors/class-connector-posts.php line 371
    apply_filters( 'wp_mainwp_stream_posts_exclude_post_types', array( 'nav_menu_item', 'attachment', 'revision', 'seopress_404', 'seopress_bot', 'seopress_schemas', ) );
  • classes/class-date-interval.php line 59
    apply_filters( 'wp_mainwp_stream_predefined_date_intervals', array( 'today' => array( 'label' => esc_html__( 'Today', 'mainwp-child-reports' ), 'start' => Carbon::today( $timezone )->startOfDay(), 'end' => Carbon::today( $timezone )->endOfDay(), ), 'yesterday' => array( 'label' => esc_html__( 'Yesterday', 'mainwp-child-reports' ), 'start' => Carbon::today( $timezone )->startOfDay()->subDay(), 'end' => Carbon::today( $timezone )->startOfDay()->subSecond()... );
  • classes/class-list-table.php line 1040
    apply_filters( 'wp_mainwp_stream_record_classes', array(), $item );
  • classes/class-list-table.php line 384
    apply_filters( 'wp_mainwp_stream_register_column_defaults', $new_columns );
  • classes/class-admin.php line 756
    apply_filters( 'wp_mainwp_stream_settings_form_action', admin_url( 'options.php' ) );
  • classes/class-admin.php line 759
    apply_filters( 'wp_mainwp_stream_settings_form_description', '' );
  • classes/class-settings.php line 328
    apply_filters( 'wp_mainwp_stream_settings_option_key', $option_key );
  • connectors/class-connector-taxonomies.php line 273
    apply_filters( 'wp_mainwp_stream_taxonomies_exclude_taxonomies', array( 'nav_menu', ) );
  • connectors/class-connector-woocommerce.php line 152
    apply_filters( 'wp_mainwp_stream_woocommerce_contexts', $context_labels );
  • connectors/class-connector-woocommerce.php line 220
    apply_filters( 'wp_mainwp_stream_woocommerce_custom_settings', $custom_settings );

Generated from MainWP Child Reports'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: