Forums

Fetching Values using Options API within TinyMCE Popup (1 post)

  1. anthonycamilleri
    Member
    Posted 1 year ago #

    I am building a plugin, with a tinymce popup window to configure the shortcode. I need to be able to fetch a value from the 'options' table of the database which was created with the options api.

    In PHP fetching the value would be done as following:

    $options = get_option('wpep_options');
    $var_i_need = $options['repo_url']

    I need to assign $var_i_need as a javasrcript variable within the tinymce popup.

    Any ideas?, Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic