pop_set_post_view

Description

The “pop_set_post_view” filter is used to modify the value to allow or disallow view counts.

A plugin (or theme) can modify the value with the code:

<?php add_filter( 'pop_set_post_view', 'filter_function_name' ); ?>

The hook is located in the popular-widget/_inc/functions.php file.

Example

// Apply filter
function modify_pop_set_post_view( $bool ) {
return false;
}
add_filter('pop_set_post_view', 'modify_pop_set_post_view');

Note: $bool is an boolean value.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *