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:
- Why is it important to deactivate a plugin before deleting it?
- Does the number of downloads displayed for a plug-in in the WordPress.org plug-in directory include automatic updates?
- How to get the active theme’s slug?
- Using plural-only translation of register_post_status() in plugin
- admin-ajax returning 400 error when request is made with Fetch API
- Function to activate WordPress theme inside a plugin
- How do I retrieve a list of popular plugins using the WordPress.org Plugin API?
- Removing blank spaces from scripts to reducing page load time
- Edit Imported advanced Custom Fields from wordpress Dashboard
- Restrict access and display for categories
- What is the correct way to check if WP_Filesystem can write to a directory without aking for username / password?
- Manually Removing Plugins
- Change My Basket text in the header of WooCommerce Artificer theme
- ACF for audio url in wordpress audio shortcode
- Don’t send notification if author comments his own post plugin help?
- Built in admin ajax hooks?
- recommended breadcrumb plugins with possibility for hiding “Home” link [closed]
- dequeue not work
- Could someone please help me to add category id with in this query so this will return posts from a certain category?
- Adding a section to admin menu for global settings
- what the hook for displaying course list page for learndash plugin? [closed]
- Copyright messages for a particular set of pages
- Feature Differences between WordPress.com and Hosting on your Own Server?
- How do you add custom logo to entire themes
- wp_get_environment_type is undefined
- building plugin and it is displaying above plugins page
- Is the wordpress user-model changed in wpmu?
- More than one text-domain is being used because of the included templates for plugins
- Dynamic CSS Vs Inline Issues in Code any Way around in a WordPress Themes?
- plugin development: problem with functions
- How to determine if a plugin affects your file-system
- View Private Published Page with URL Code (no login required)
- Why does my functions.php cause white-screen and media-library issues?
- Solutions to repost categories into multisite blogs?
- Custom random quote widget breaks when used in multiple sidebars
- Added slug after URL permalink last slash returns different content
- How to escape the tailwindcss responsive syntax when using with contact form 7? [closed]
- Send reply with pre-prepared answers
- Using Wishlist Member and I need to access a user’s status
- $wpdb->get_row returns column name instead of column value
- Howto check version of another plugin and then add a submenu page to it
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Which file of wordpress manage plugins functionalities?
- How to use login_redirect with a user capability
- I should enable automatic updates?
- Form that generates an ID for the customer
- Access a particular field in an array
- plugin shortcode not working on ajax request call
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Issues with a WP plugin menu system
- Ajax Plugin Not Echoing Response
- Affect on speed of wordpress membership plugins — currently trying s2member
- JQuery prepend a function
- Different custom templates for product category [closed]
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- Clear out old images, any advice?
- problem with sql query
- Can i legally remove a credit from a free plugin on wordpress.org? [closed]
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Woocommerce product info in a sidebar?
- output the debug lines to the end of the page
- A question of etiquette when forking a plugin? [closed]
- Localise settings section headline
- WordPress Plugin for pastimes/participation in contest [closed]
- Plugin to create unlimited custom shortcodes?
- How do I create pages within a WordPress post?
- wp_options not returning value for logged out users?
- Gutenberg default attributes are empty when accessing in edit
- how to create a custom page in child theme or plugin?
- How to add custom plugin data to the cart in woocommerce using custom button on product page?
- How can I display selected content from a seperate database in an Activity style widget?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function
- Hide all Admin Notices and move on a separate page
- Allowed memory size of 134217728 … wp-includes/wp-db.php on line 1989
- Pricing Calculator – WordPress
- Make the product page as homepage WooCommerce
- Front Page of Site Has Gone Replaced By Random Page
- Genesis Child Theme – Customize body
- Creating categories while importing via CSV
- Multiple wordpress installations with same plugin folder (Apache Virtualhost)
- Website content not displayed anymore after updates
- Flexslider empty slide
- WordPress plugin changes not updating
- Meta box: Undefined index
- How to update plugins in a distributed wordpress scenario?
- What’s the preferred method of writing AJAX-enabled plugins?
- Shortcode registered from a plugin not recognized
- Plugin for Reading Documents, PDF’s etc
- Simple Data Table Update and Page Integration
- How to add a box for list items?
- wp_update_post call really slow when official Facebook plugin is installed
- Show latest and related articles from 3 different blogs
- Woocommerce custom fields
- This plugin throws error on the events page only [closed]
- PHP if url extension action=discussion condition use [closed]
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- Shortcode to do math with url variables
- WordPress plugin header already sent
- Order custom post type by posts with most likes first
- WordPress website is redirecting on some different shopping page