The “pop_{$tab}_title” filter is used to modify the displayed title for each post per tab.

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

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

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


// Apply filter
function modifY_pop_recent_title( $title, $post ) {
	return '<span class="pop-title title">'. $post->post_title .'<span>' ; 
add_filter('pop_recent_title', 'modifY_pop_recent_title');

Note:  $title is a HTML string, $post is an object.

Leave a Reply

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