How to use if(get_option('')): in WordPress Widgets (2 posts)

  1. crystal.heart
    Posted 2 years ago #

    I just create a wordpress widget . But I have one question. How can I us<?php if(get_option('myoption')):?> in wordPress custom widgets ?

  2. catacaustic
    very awesome
    Posted 2 years ago #

    How do you want to use it? The syntax that you've got there is correct and will work, but it may not give you the results that you expect it to. Give us some more info about what you actually want to check with the if() condition and we'll be able to give you more idea on what's going to work for your case.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.