firstly, don’t edit core files of WordPress or your changes will be erased at the next update.
in the file options.php
look below this array declaration, you have this line :
$whitelist_options = apply_filters( 'whitelist_options', $whitelist_options );
that means that you can custom this array with this code in a plugin or the theme :
add_filter("whitelist_options", function ($whitelist_options) {
$whitelist_options["general"][] = "siteurl";
return $whitelist_options;
});
Related Posts:
- Remove/unset options field from backend Settings->General?
- How to get WordPress Time Zone setting?
- Running WP Cron on multisite the right way
- Limit the number of inactive widgets
- How to check if image is already stored in a site’s post database? (network)
- Custom plugin: Trying to show saved data on frontend
- Integrating WordPress to my website, while keeping my own authentication system
- How does wordpress know which site to setup (on multisite)?
- Site Title and Tagline in Theme Options Page
- Multisite get_home_url(); – Getting URL for current site
- How to use wp_insert_user on WordPress Multisite?
- Editor role cannot save custom theme options
- Network installation giving errors when viewing or adding a user
- Site Title and Tagline in Pagelines DMS Options Panel
- Enqueue Javascript Correctly for 3.5
- Sort posts from multiple sites by date
- Fix 403 error on WordPress multisite network using subdomains
- Implement a multi-value input field where the number of entries is not limited
- How to create Sub Sub domain Multi User blogs?
- How do I output a database option that is an array into a get_posts array?
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- Delete option value from array using update_option()
- How to get bool with `get_option()` when already registered setting with type `boolean`
- Settings API – sanitize_callback is not called and it leads to an incorrect behavior
- Custom php page outside the scope of my theme
- Store and Work with huge array in WP [closed]
- Adding hreflang tags automatically in WordPress subdirectory multisite
- Adding Default Settings to Theme My Login plugin
- How to change home or site url using action hooks or filter?
- Multiple options not staying selected after saving
- wordpress media library new uploads don’t write to database
- WordPress returning 404 for multisite pages
- Whitelisting items from custom options page
- How to call plugin function per site in a multisite?
- Options API get_option() and update_option() Not Correctly Updating or Returning
- Setting default category base on theme activation
- NGINX rewrite rules for multisite
- Error: options page not found
- WP & Server Speed [Teacher Question]
- How to store options in an array
- how to update and display an option without reloading the page
- Redirect to another page using contact form 7? [closed]
- Security for data obtained from the database
- Moving code from theme header to functions.php
- Pull GetOption() variable into jQuery dynamically created html
- Filtering a Database Query
- Is it best to avoid using $wpdb for security issues?
- Is a series of update_option calls safe, performance wise?
- wp_redirect only works on main site and not on other sites
- WP_OPTIONS table, active_plugins entry [closed]
- How to avoid duplicates when creating recent network posts
- Warning: Illegal string offset on theme options page [closed]
- Link blogname and blogdescription to the Options Framework
- retain querystring values when savincustom options in admin
- Timthumb.php image gallery not working on Multisite WordPress
- How to Change CSS Colors from Custom Plugin Settings Page
- Find Site ID From WP_Post
- List all blogs, but exclude the main site
- Decimal values via get_option() with custom local (decimal point = comma)
- How to show every second user different types of banners?
- How to disable all logins except Network login in WordPress Multi site?
- WordPress language switcher doesn’t work
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- Why, when moving a WordPress multisite network, have my theme customisations stopped working?
- Authentication from sub-folder non-wp cookie WordPress
- Get value from db for custom contact form
- Page Options Saving But Not Updating In Backend
- How to sort posts by active category in WordPress?
- wordprees multi-site in user panel add filter
- Add a custom WooCommerce settings tab with sections
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- WordPress Multisite login_redirect to primary blog and specific page based on role
- Set all WooCommerce Products to Simple, Virtual & Downloadable
- How to make a pagination with dropdown selection?
- No more get_option(‘date_time’) in WordPress 5.5?
- Merging Multiple WordPress Websites
- Annoying/confusing WordPress memory limit exhausted
- Create form which redirects to site in network?
- Multiple WordPress sites with different theme and plugin sharing the same content
- Echo Option Value Based On WordPress User Role
- PHP script to redirect traffic based on website accessed
- List all blogs apart from the current blog and main blog in WordPress Multisite
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- Resource 404 error on multisite subdirectory install
- use system script advertising in wordpress multisite
- WP Admin Bar – Get current theme name as custom menu title
- WordPress Setting page can not be saved by html radio
- WPMU schedule doesn’t execute actions
- WP multisite network plugin fails to see classes loaded with spl autoload
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- Trying to post information from a remote database to wordpress page
- Save Option on Database
- Force string into signup form
- Integrating CSS Into a WP Function Call [closed]
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- Options.php loop won’t show!
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- save array of objects with update_option
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico
- Internal server error when enabling Multisite in WordPress