Setting Default Screen Options
I don’t think that’s what should normally happen. Can you replicate that on a clean install with no plugins and a default theme?
I don’t think that’s what should normally happen. Can you replicate that on a clean install with no plugins and a default theme?
get_option returning old value for non-admin users
You don’t have to register_settigs, you can just add the options straight to the database with add_option(). You could have like a dummy option “all_pages_created” and if that’s set then don’t check for the individual pages. if (get_option(‘all_pages_created’) !== false) { // it’s set, do nothing } else { // check for your pages and … Read more
Change your id from plugin_text_string to plugin_options.
Settings API retrieving options database information alongside with user information?
Hold a comment in the queue if it contains [X] or more links
You can just use the get_option() function like this: <?php $main_dashboard_check = get_option( ‘main_dashboard_check’ ); var_dump( $main_dashboard_check ); /* outputs false if the value does not exist */ $main_dashboard_check = get_option( ‘main_dashboard_check’, ‘default_value’ ); var_dump( $main_dashboard_check ); /* outputs ‘default_value’ if the value does not exist */ ?>
Dynamic value for get_option linked to taxonomy term_id?
I sort out the problem now. It seem that the permission for ‘manage_categories’ is needed for this plugin.
Is this what you are looking for? You want to get the option and output it? $emailTo = wpJediOptions::get_option(‘my_option’, ’email_1′); echo $emailTo;