Modifying text with the HTML API in WordPress 6.7 #301
Replies: 5 comments 3 replies
-
This tends to go real poorly in practice - a clbuttic problem in computer science - and tends to negatively impact specific groups of people more than others, and those groups tend to be the ones that are different from the person writing the code. It might be valuable to be careful about encouraging behaviors which are often unintentionally exclusionary.
WordPress/wordpress-develop#6762
One aspect of This is relevant for the first case too:
Because it may not be obvious if a chunk of string reported by I do advise caution about widely teaching Something like replacing Emoji seems like one of the more fitting examples to demonstrate, or replacing usernames or some kind of DSL embedded within the HTML. |
Beta Was this translation helpful? Give feedback.
-
I have a great idea for this feature that will be my first plugin submitted to the WP.org plugins repo! Following the discussion for progress updates. |
Beta Was this translation helpful? Give feedback.
-
Even if there are only a few examples, it might be good to have an article that covers the dos and don'ts of |
Beta Was this translation helpful? Give feedback.
-
Is there anything that will need to be escaped when using the hook? Might be worth a mention |
Beta Was this translation helpful? Give feedback.
-
I'm leaning toward closing this one in favor of #313 Let's get some of those foundational examples in place and wait for |
Beta Was this translation helpful? Give feedback.
-
The Tag Processor will let you customize modifiable text in WordPress 6.7. See:
get_modifiable_text()
reads enqueued updates. wordpress-develop#7150This will be a good opportunity to follow up the first article and the HTML API to show some use cases beyond just modifying attributes. Some quick ideas:
:)
) with emoji.CC: @dmsnell - Pinging for ideas on what you think are solid things to do with this
set_modifiable_text()
?Beta Was this translation helpful? Give feedback.
All reactions