Posted By

Farhan on 01/03/11


Tagged

panel wordpress option admin custom


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

baires


Check Custom WP Options


 / Published in: PHP
 

This is to check if a custom option exist from the admin panel.

  1. <?php if (get_option('custom-option')) { ?>
  2. Yep
  3. <?php } else { ?>
  4. Nope
  5. <?php } ?>

Report this snippet  

You need to login to post a comment.