Question
I use template_lock to lock some Gutenberg blocks. But I would like to use it in three differents post type. get_post_type_object(); admit only string, no array. How to use several post type without repeat three times the same function please ? function wp_template_lock_subject_imposed() ...
0
22 hours 0 Answers 6 views

Question
I have this custom post type with two meta fields that I need to show as toggle controls (RestrictControl and SubscribeControl) in the PluginDocumentSettingPanel sidebar in the Gutenberg editor. The thing is that I only want to show SubscribeControl when ...
0
, 3 days 0 Answers 8 views

Question
I built a block which has 3 TextareaControl. HTML, SCRIPT, STYLE. SCRIPT and STYLE are fine but TextareaControl escapes html. <p>test</p> becomes &lt;p>test&lt;/p> I searched Google and some people adviced RawHTML but it is deprecated. What should I do?
0
5 days 0 Answers 14 views