Skip to content

wpa_stats_data_point

github-actions[bot] edited this page Nov 15, 2026 · 3 revisions

Filter the data displayed about a given stats point.

Auto-generated Example

add_filter(
   'wpa_stats_data_point',
    function(
        array $return,
        WP_Post $post,
        string
    ) {
        // Your code here.
        return $return;
    },
    10,
    3
);

Parameters

  • array $return Array with an html key containing HTML and a count string with the number of issues to display.
  • WP_Post $post WordPress post object.
  • string $type Type of stat; 'event' or 'view'. Other variable names: $type

Returns

array

Files

apply_filters( 'wpa_stats_data_point', $return, $post, $type )

← All Hooks

Clone this wiki locally