So I figured out why the icon won’t show, even after I added filter to put one in. $icon wasn’t properly defined and thereby not inserted into the filter.
So I comment out the two instances of $this->icon, then I went down to public function get_icon() and defined my $icon and inserted it into the filter thus
public function get_icon()
{
$icon = '<img src="' . WC_HTTPS::force_https_url( plugins_url( 'assets/icon.png', WC_SQUAD_MAIN_FILE )) .'" alt="Squad by GTCO" />';
return apply_filters('woocommerce_gateway_icon', "$icon", $this->id);
}
do remember to put an icon.png into the asset folder in the plugin and you have it pop just like mine https://prnt.sc/L2k7GqTEi_ts
Hope this helps someone.
Hello
How do I find the public function icon please? I’m not a wordpress developer
@damy399 it’s in the plugin main file. you’ll need basic PHP code skills to edit the file. Get your developer to look into it.