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
- Customize default settings on new sites on multisite
- Sorting list of sites from multisite network using wp_get_sites
- 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
- WordPress customizer: load controls in a custom div
- 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
- Passing array in add_option()
- Implement a multi-value input field where the number of entries is not limited
- Select dropdown not showing selected value php
- 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`
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- 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]
- WordPress (3.9.1) MultiSite Permissions. Is chown the answer?
- Adding hreflang tags automatically in WordPress subdirectory multisite
- SQL QUERY – Select a value directly from the database
- Adding Default Settings to Theme My Login plugin
- How to change home or site url using action hooks or filter?
- Ajax – Call to undefined function get_option()
- 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?
- WordPress returns “The link you followed has expired” error page whenever I add a new site, add a user etc
- Options API get_option() and update_option() Not Correctly Updating or Returning
- Setting default category base on theme activation
- NGINX rewrite rules for multisite
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- 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
- Saving plugin settings – ERROR: options page not found
- 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?
- Count posts on multisite with blog id
- Is a series of update_option calls safe, performance wise?
- wp-options keep crashing please help
- 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]
- How do I display offsite database info on my wordpress site?
- 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?
- Known Issues in WordPress When Upgrading PHP to ver 7
- WordPress homepage setup not working on first load
- 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
- need help adding a new sidebar to a page that can’t use page-templates -> multisite
- Get value from db for custom contact form
- Display random image url from list of input values
- How can I fix this code [duplicate]
- 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
- bp-custom.php is not working on a WordPress multisite environment. how to fix it?
- WordPress Multisite login_redirect to primary blog and specific page based on role
- How can I update WordPress plugins or WordPress itself in all server?
- 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?
- Internal Server Errors – Moving working multi-site install to my localhost
- Merging Multiple WordPress Websites
- Annoying/confusing WordPress memory limit exhausted