• Resolved Dono12

    (@dono12)


    Does anyone know how to add a filter and a call function for functions.php for this block of code found in WTI LIKE IT post Pro. This code block is in wti_like_post.php

    $wti_user_likes .= ($users_count > 1 || ($users_count == 1 && $flag == true)) ? __('like this', 'wti-like-post') : __('likes this', 'wti-like-post');
    		}

    I would like to change the texts ‘like this‘ and ‘likes this‘ to my own custom text but only for about three separate categories.

Viewing 1 replies (of 1 total)
  • Thread Starter Dono12

    (@dono12)

    Solution :

    adding a if else statement above code in wti_like_post.php

    $my_cat_ids = array(<strong>ADD YOUR CATEGORY NUMBERS HERE</strong>);
    						$category_ids = wp_get_post_categories( $post_id );
    						$match_array = array_intersect( $my_cat_ids, $category_ids );
Viewing 1 replies (of 1 total)
  • The topic ‘Like this’ is closed to new replies.