Svelte Radio cover image

LevelUpTuts 6 months later with Scott Tolinski

Svelte Radio

00:00

How to Create a Custom Input Wrapper for WordPress

The root of it comes from the Zodschema. The Zod Schema contains whether or not, okay, let me pull up an example. So let's say I have like a blog post schema, right? That has a title, a slug status, a body, those types of things. Those properties are all defined by the ZodScheme as being a string or even an enum or whatever. I then pass it through a function called convert to LUT schematics which is just like my auto form API. And in that I can define properties as being meta, which means that they become read-only and they're just only there to be shown on your page

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app