Conditional for custom function
-
I’m looking for a way to add a conditional for a snippet of code in a plugin. I want to check if it is set in the admin and if so show that data, if not show nothing. Here is my code:
function display_manager_info() { // Some functional code }in my html code I have this right now:
<?php display_manager_info(); ?>So if there is nothing set, right now it has the div and labels showing empty. How in PHP/Wordpress is this done? I’m a newbie. Thanks for you help in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Conditional for custom function’ is closed to new replies.