Description
The “pop_before_set_pos_view” action runs before view count function has run.
A plugin (or theme) can add an action with the code:
<?php add_action( 'pop_before_set_pos_view', 'filter_function_name'); ?>
The hook is located in the popular-widget/_inc/functions.php file.
Example
// apply action function action_pop_before_set_pos_view( $instance, $number ) { //run action here } add_action('pop_before_set_pos_view', 'action_pop_before_set_pos_view');
Note: $instance is the widget object, $number is an integer.