Dynamic Visibility - Triggers - Custom Condition
If you have a complicated situation that you cannot handle with prebuilt triggers, you can write your own conditions with some PHP codes.
You have full access to the Wordpress function and PHP power.
NOTE: please do not try to write code if you are not a developer.
To retrieve current $post (or $user) object require it as global:
global $post, $user;
Enabling this setting it will execute code externally in secure mode without throw possible FATAL error.
IMPORTANT NOTE: if you want the access to a current page data and context, you need to disable it.
WARNING: if it's disabled a wrong code can break this page, check if the code is correct before saving.
Read how to solve fatal errors: https://docs.dynamic.ooo/article/17-php-raw
- connect to an external database or API (like weather) and show different content base external temperature;
- check the value of multiple post meta data and show elements if they satisfy your defined criteria;
- endless possibilities...