Custom PHP Conditions? | WordPress.org

[ad_1]

Is there any way to write custom PHP conditions? I’m a code/PHP hack, so a simple example would be good if you have anything. Something like:

<?php
if ( my_custom_function === true ) {
   return false; // Block is Hidden
}
?>

A different plugin, Wicked Block Conditions has a feature to “Show or hide blocks based on the result of a PHP function.” I may end up using it, but wanted to check and see if you had something similar.

Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer