Skip to content

wpa_save_stats_update

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

Run when a statistic that has already been recorded in the database is updated.

Auto-generated Example

add_action(
   'wpa_save_stats_update',
    function(
        int $exists,
        array $stats
    ) {
        // Your code here.
    },
    10,
    2
);

Parameters

  • int $exists Existing post ID.
  • array $stats Stats data sent via AJAX.

Files

do_action( 'wpa_save_stats_update', $exists, $stats )

← All Hooks

Clone this wiki locally