plugins – Which filter affects the ‘entry-title’ post class

Question

I created a plugin setting a $var to true if the post belongs to category ‘a’, and set the same $var to false if the post belongs to category ‘b’, it works and I can get the correct value depends on the category

what I need is to find a filter helps me to add an extra text to the entry-title post class so I can change post title align or color if if the post category is a without editing content.php file.

Here is the code:

function change_my_entry-title(){
    if ($var === true){
        return 'entry-title_cat_a';
    }else{
        return 'entry-title';
    }
}
add_filter(' ..... ','change_my_entry-title');

So which filter_name I should put instead of .....

0
usama sulaiman 8 years 2013-09-13T10:01:20-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse