Skip Navigation

[Resolved] Data-dependent display filter by WYSIWYG

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Tiit Sau 1 month ago.

Assisted by: Minesh.

Author
Posts
#2778541
Types-data-dependent-display.png

Hi,

I have read the documentation, but still wish to ask. Is there a way to check if WYSIWYG field is Empty?

#2778693

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That's correct. You can not add the condition on WYSIWYG field.

However, possible workaround would be you can try it out if that helps, you can create a custom field group and add the custom field you want to display when WYSIWYG field is not empty to this custom field group.

And then you can use the hook "remove_meta_box" and "add_meta_box" to add/remove the custom field group meta box when WYSIWYG field is empty or not empty.

Please check the following related ticket - you can adjust the code as required:
- https://toolset.com/forums/topic/deactivate-update_post_meta-for-some-custom-fields-in-some-post-types/#post-595479

#2779143

Hi,

> You can not add the condition on WYSIWYG field.

Toolset can't control own creations sounds boring. But okay, let it bee - I will find the way.

Thanks