Missing param for gateway icon filter
-
Hello @team,
In your plugin has filter:
$this->icon = apply_filters('woocommerce_gateway_icon', '' . $plugin_dir . '/assets/icon.svg');This code is missing the second param & It;s causing php warning when the third plugins or themes add filter.
It should be like:
$this->icon = apply_filters('woocommerce_gateway_icon', '' . $plugin_dir . '/assets/icon.svg', $this->id);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Missing param for gateway icon filter’ is closed to new replies.