action_scheduler_extra_action_counts
Allows 3rd party code to add extra action counts (used in filters in the list table).
Usage
add_filter( 'action_scheduler_extra_action_counts', 'wp_kama_action_scheduler_extra_counts_filter' );
/**
* Function for `action_scheduler_extra_action_counts` filter-hook.
*
* @param $extra_actions $extra_actions array Array with format action_count_identifier => action count.
*
* @return $extra_actions
*/
function wp_kama_action_scheduler_extra_counts_filter( $extra_actions ){
// filter...
return $extra_actions;
}
- $extra_actions($extra_actions)
- array Array with format action_count_identifier => action count.
Changelog
| Since 3.5.0 | Introduced. |
Where the hook is called
action_scheduler_extra_action_counts
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Store.php 175
return apply_filters( 'action_scheduler_extra_action_counts', $extra_actions );