terms from the faq_group taxonomy to fill a SelectControl component (name and slug) []const selectedGroup = useSelectGet posts from the faq custom post type with a faq_grou
我正在使用useSelect获取可用的图像大小,然后我想检查这些图像实际上是否有这些大小,因为可能已经添加了一些自定义的图像大小。我所做的是有效的,但我担心实现是不正确的,因为这是我第一次使用useSelect。Toolbar, PanelBody,} from "@wordpress/components"; setAtt
only allow FAQItem <FAQQuestion> --> This has a question attribute that I can access with useSelect我可以使用useSelect()访问问题并获取问题属性,但是我似乎找不到一种方法来预先呈现InnerBlocks组件以生成答案HTML。我该怎么做呢?