/ Published in: PHP
This is to check if a custom option exist from the admin panel.
Expand |
Embed | Plain Text
<?php if (get_option('custom-option')) { ?> Yep <?php } else { ?> Nope <?php } ?>
You need to login to post a comment.
Farhan on 01/03/11
panel wordpress option admin custom
1 person have marked this snippet as a favorite
This is to check if a custom option exist from the admin panel.
<?php if (get_option('custom-option')) { ?> Yep <?php } else { ?> Nope <?php } ?>
You need to login to post a comment.