Skip to content

wpa_save_stats_post

github-actions[bot] edited this page Oct 18, 2026 · 2 revisions

Run when a new statistic is recorded.

Auto-generated Example

add_action(
   'wpa_save_stats_post',
    function(
        int $stat,
        array $stats,
        int $post_ID
    ) {
        // Your code here.
    },
    10,
    3
);

Parameters

  • int $stat New post ID.
  • array $stats Stats data sent via AJAX.
  • int $post_ID Related post ID or false if a non-singular screen.

Files

do_action( 'wpa_save_stats_post', $stat, $stats, $post_ID )

← All Hooks

Clone this wiki locally