based on MMK’s help below, here’s the code:
$toremove = 605 // I actually use a var like so $toremove = $_REQUEST['somevar']; I'm just using 605 as an example
$selectid = get_option('swcs_postpage_id');
$key = array_search ($toremove, $selectid);
unset($selectid[$key]);
update_option(swcs_postpage_id, $selectid);
Related Posts:
- Use Notepad++ as HEX-Editor
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- Pass PHP variable to javascript
- When does WordPress.org notify sites of new version?
- WordPress plugin archive
- Creating 20,000 Posts or Pages using a .csv file?
- Get a button for in the Editor
- Plugin not showing in dashboard
- Namespaces in WordPress – How do I initiate the main class?
- How to transfer a WordPress blog to a different domain?
- Change Page’s Tag Using functions.php File
- Help making my pagination plugin better
- wordpress get meta value by meta key
- How to create gutenberg block using REST API independently or as headless way?
- How can i force Display names to be the same as Usernames?
- What areas to Unit test while building a plugin?
- Code markup plugin like the .wordpress.com blogs offer?
- Set active theme via URL
- How to automatically add and show(open) all the product attributes?
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Bad Request (Invalid Hostname) on working server, database problem
- Plugin Not Working, But Only On GoDaddy Hosted site
- Long running action from plugin
- Notify commenters about new replies
- How to get the current plugin name?
- Plugin readme.txt and assets internationalization
- How to update plugin without overwrite custom code
- Errors while using ajax from external wordpress page
- Woocommerce different URL for every table placed in the restaurant
- Disable Admin Bar Render on Plugin Page
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- WP get_permalink Return Wrong URL
- Pass A Value From Outside To A Plugin Variable
- Custom field in TWIG template – Advanced custom fields plugin
- WordPress Plugin for One-Time Event Registration? [closed]
- Remove toolbar option (and set to default to no) in user profile
- [Plugin: Posts 2 Posts] reciprocal connections
- Add query string to plugin URL
- post expire after x days
- How to add a privacy-checkbox in comment-template?
- Can plugin variables cause conflict?
- How to get all events from ‘All in one Events calender’ plugin in JSON format?
- MailChimp integration that allows users to select from multiple lists [closed]
- Server side validation for Contact Form 7 [closed]
- How to migrate from Mark Jaquith’s Subscribe to Comments plugin to Gurken’s new version?
- How to handle autoloading with composer by keeping the WordPress naming conventions?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- filemtime() warning when enqueuing style within plugin
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- Bulk Image Uploader to create new post from each image [closed]
- Current user in plugin returns NULL
- How to structure a plugin into multiple files using classes?
- What are the benefit in adding hook in the init() hook?
- How can I implement a notification system in wordpress?
- WordPress logo upload option in theme panel
- Woocommerce – Display active variation product price [closed]
- Minimum PHP Required for WordPress
- Force [wordpress_social_login] shortcode to display where it is embedded [closed]
- How to hide plugin from WordPress Multisite admin plugin list
- Internationalization: Not loading plugin translated text
- Gravatar images are not fetched in Ultimate Member plugin
- Post query – show posts from specified day and month and whole years
- Unable to install theme recommended plugins on Multisite
- Building an email signup form. Where should the information be saved in the DB?
- Support for simultaneous editing
- Getting selected (highlighted) html from the Visual Editor on Edit Post page?
- How to add social locker on custom fields
- Accidentally Broke Site (Please Help) [closed]
- WordPress performance – W3 Total Cache and memcached/APCu
- tag breaks shortcode output (other solutions don’t work)
- Add custom message to the plugins page of WordPress
- How to redirect to edit.php page after saving the post,product and showing the message “post saved “
- Apple push notification doesn’t work
- How to query the custom fields by language?
- Plugin Code ONLY on Post Edit Page
- qTranslate conflicts with SEO-plugins [closed]
- Multi language site [closed]
- How can I disable widget from being visible on some pages?
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- Show Sub pages excerpt+thumbnail
- Create entire wordpress as a github repositery?
- WordPress Ajax Posting from App
- Is any gallery plugin available to generate galleries from existing uploaded images? [closed]
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Override Plugin Script Fucnction in WordPress
- How to overwrite core/libraries/vendor template with child theme
- Plugin integrate in forum to show user profiles [closed]
- WordPress multi domain – redirect
- Change permalinks of custom post type ‘question’ as post id or any random number once
- Ajax fail and get 504 error
- Want to Show Sub categories under Categories section using Woo Commerce [closed]
- How to customize the grid layout in reactive pro wordpress plugin [closed]
- Why do plugins deactivate by themselves?
- WP_Query and NULL meta keys
- Is it possible make a back-end for WordPress with WordPress?
- Conditional attributes and logic per product category
- Updating plugins asks for FTP information, why? (this is a new one)
- Create Gallery using Custom Post Type and add sum gallery as sub gallery of Main Gallery
- do_action() hook into load-(page)