Forums

[resolved] Populating Widget from Options Page (2 posts)

  1. greggoodwin
    Member
    Posted 3 months ago #

    I have an admin options page where the user enters what a widget should display. I made this decision so the user can export and import the settings so they don't have to enter the same information many times if they use it on multiple sites.

    My issue is I have no idea how to get the options page information into the extends WP_Widget class. I tried referencing the variables set in the options function but they are null. I am new to this so I don't know how to make these variables accessible in the class.

    Thanks in advance for any help.

  2. greggoodwin
    Member
    Posted 3 months ago #

    figured it out by using get_option

Reply

You must log in to post.

About this Topic