See the myplug_admin_page function.
And see the selected calls inside it. selected works in a way that check the value of the item with the current saved value.
In your selected calls the current saved value should be $input['select_it'] but.. no $input variable it’s defined in that function.
In that function the current saved value is in the var $myplug_options (because of the $myplug_options = get_option('myplug_settings')).
So in selected calls replace $input with $myplug_options and I bet it will works.
Related Posts:
- Contact form 7 select box different value-text than content-text in option [closed]
- Where should my plugin POST to?
- Plugin development: how to create a form and get custom data?
- shortcode doesn’t work
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- How to trigger $_GET request within admin plugin page?
- Custom form action to handle data inside a plugin
- wp_create_nonce function doesn’t work inside a plugin?
- New User Form – Custom Menu Page
- Using a custom plugin to capture input data via Ajax and PHP
- How to output CMB2 select options from repeated groups select elements?
- Checkbox conflict in my custom plugin admin page
- Submit Form data to another page via Ajax (WordPress Way)
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- User loggedin as Subscriber form not sending
- submit form data to wordpress existing database table using my plugin
- WP_Filesystem usage within a block of code
- wordpress option page data from select form is not saving to database
- Linking Plugin Files to WP
- Create plugin with form in post and submit it to specific form
- Capturing POST data
- Creating fields in the database
- Undefined variable _POST
- Custom wordpress plugin does not save select element
- Display file contents within Plugin
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- Creating a WordPress admin page without a menu for a plugin
- fatal error get_page_permastruct()
- Common functionality between my own plugins
- How To Ignore a Filter On Applying Filter the Content In a Function
- Which functions in theme or plugin load first
- Adding Image in readme.txt file of wordpress plugin
- Saving Plugin settings to the database
- Add CSS animation as Preloader to WordPress
- remove custom taxonomy metabox form custom post type
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Custom height/width for thickbox in WP Backend
- add action wp_head not working
- WP Plugin Developers – Accessing my wordpress site [closed]
- Next and/or previous post content
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Display post lists in 2nd paragraph
- Single API call exposed via shortcode with params
- Is there a way to test that readme looks in other language before submitting translation?
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Create tabs in admin options page from custom post type loop
- ob_start() combined with wp_query
- How to fetch form data and show it to my page?
- Can a Plugin Override New User Default Role Type
- How to test ‘upgrader_process_complete’ hook in plugin development?
- How to let user store a file in plugin directory but not have it get deleted on update?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Plugins ignored a line breaks or tag in the WordPress comment functions
- How to get path or root of plugin folder, not file or dir?
- Change letters for day name
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Elementor Custom Control: How to get input value?
- Correct Plugin File Path
- strange shortcode error: does shortcodes requires any dependency?
- Create “new pages” within the admin section of plugin
- Integrating Custom Database with WordPress
- Editable select options in quick edit OR in plugin settings
- specific rows style for in custom list table using WP_List_Table
- How to add the search page link to the anchor tag?
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- How to get data from a form on a wordpress site?
- Creating one user access account for all the multiple sites
- Using id to show item
- I am Getting Sorry, no posts matched your criteria on form submit only for certain page [duplicate]
- wpdb update method is updating but not refreshing the current page data
- Shortcode and WP query using category attributes
- Dynamic input fields in WordPress Plugin
- Custom role not listed
- How to send custom mail when a user complete a specific form
- Better way to run heavy scripts using WordPress database
- how to check plugin name unique or not?
- Pause form submissions while upgrading plugins
- How to hide the form after successful php execution
- Change default url to plugin custom post type
- Creating a user ‘add custom field’ section
- WordPress ajax not working in registration
- Form submit from wordpress plugin
- How to show post attachment image
- Can a developer adopt a plugin marked as “not updated in over 2 years”?
- Making a Custom Post Type Publish Loop
- County Finder form/plugin?
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- Someone Comment 1000 times in a Day in My WordPress Site, What Can i Do
- get_option returning a different value from what’s saved
- Plugin: Custom menu item problem
- Getting warning of Missing argument 2 for wpdb::prepare()
- Form with response button after on table after submission
- Meta box not displaying on the plugin page
- public custom posts not showing in my wordpress plugin
- Plugin question, How to insert a colon in a value box
- Need a Category List for the category slug