Change the Review Source Icon with a Custom Filter

You can now use a custom filter to change the source icon for a review. For example, let's say I wanted to use a different Google icon I could add the following to my function.php file...

add_filter( 'wprevpro_modify_sourcelogo' , 'modify_source_logo', 10, 4 );
function modify_source_logo($logo, $review, $currentform) {
$logonew = str_replace ( "https://wptest.ljapps.com/wp-content/plugins/wp-review-slider-pro/public/partials/imgs/google_small_icon.png" ,"https://www.svgrepo.com/show/50809/google.svg" , $logo);
return $logonew ;
}

Of course your original icon source would be different than my "wptest.ljapps.com".

This article was helpful for 2 people. Is this article helpful for you?