WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. crystal.heart
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.