Prepare a literal LIKE search in WordPress
Use esc_like() and prepare() for different jobs, then prove that percent signs, underscores, and apostrophes behave as intended.
Notes on building with code, thinking with new tools, and paying attention to the life happening around both.
Explore the stories below.
Some pieces are practical, some are personal. All begin with a question.
4 stories
Use esc_like() and prepare() for different jobs, then prove that percent signs, underscores, and apostrophes behave as intended.
Accept exactly the values a feature understands, reject unexpected types, and test the difference between validation and sanitization.
Build a small resource card that keeps labels as text, contains quotation marks, and refuses unwanted URL protocols.
Build a small REST endpoint and follow the boundaries between authentication, post permissions, input validation, and a successful save.
A home for experiments, explanations, and personal stories: useful enough to return to, human enough to linger with.