Skip to content

Filter to add an icon before the Title #147

@isaumya

Description

@isaumya

Hi,
Currently in the settings of the plugin there is the section called title e.g. Credit / Debit Card which shows up on the checkout page. Now if you let's say want to add a credit card icon before that text, I don't know if there is any existing filter available for that. Currently I simply add the i tag before the title. But though this hacky approach works fine on the checkout page, but it does create a lot of issues as mentioned below:

  • Inside the WooCommerce dashboard for every payment, the payment method shows up like <i class="something"></i> Credit / Debit Card.
  • The same issue can also can be seen in many other places.

The reason for this is most of these places uses esc_html() on the payment method mane.

So, it would be really helpful if there was any easy filter using which an icon can be added without adding HTML inside the payment method name.

If there is any such existing filter with I'm unaware of, please let me know. It would be really helpful.

Thanks. Looking forward to a reply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions