Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Add filter for changing the entire button HTML #171

Open
tyrann0us opened this issue Feb 16, 2023 · 0 comments
Open

[Feature Request]: Add filter for changing the entire button HTML #171

tyrann0us opened this issue Feb 16, 2023 · 0 comments

Comments

@tyrann0us
Copy link

Is your feature request related to a problem? Please describe.
It's currently not possible to filter the entire HTML of the favorites button. favorites/button/html only affects the button's inner HTML.
However, there might situations where you need to, e.g., wrap the entire button in a container for styling purposes.

Describe the desired solution
It would be great if the plugin would include a filter like favorites/html that would allow filtering (modifying) the entire HTML of the button, not only the inner HTML.

Describe the alternatives that you have considered
Currently, we filter the_content, search for the favorites button and use DOMDocument() to wrap the button(s) in a div. This is very cumbersome, resource-intensive, and error-prone.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant