After some more research I found a solution, turned out that I had to use admin_init..
function pg_save_custom_site_options(){
global $pagenow;
if( 'site-info.php' == $pagenow && isset($_REQUEST['action']) && 'update-site' == $_REQUEST['action'] )
{
if ( isset( $_POST['blog']['custom_limit_amount'] ) )
{
$new_field_value = intval( $_POST['blog']['custom_limit_amount'] );
if( is_int($new_field_value) ){
update_blog_option( $_POST['id'], 'custom_limit_amount', $new_field_value );
}
}
}
}
add_action('admin_init', 'pg_save_custom_site_options');
Related Posts:
- How to add Custom Blog Options to new blog setup form?
- WordPress Multisite: Adding actions to only one site
- Perform action on WPMU blog deletion
- Add site options UI in Multisite Sites > Infos page
- Make default new sites https (multisite)
- Update blog option during create new blog?
- Plugin for editing options on multisite?
- WP Multisite: Adding pages on blog creation by default
- differences between behavior get_option vs get_site_option in multisite
- Add new column to sites page
- How To Provide Sub-Blogs Their Own Domain Names?
- Multisite: How to store global options vs. site options?
- How do I share plugin settings across WordPress network?
- Blog Settings import/export in WordPress Network environment
- Prevent Deletion of Blogs
- How to make WordPress use new Upload Path settings in Multisite Setup
- Hook filter to change wp_upload_dir() path in multisite
- What is the correct form action URL for network options pages?
- Using WP CLI to set options in WP Multisite
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- WPMU Hook for archive or deactivate blog?
- How to update_site_option for specific site within network?
- Delete option value from array using update_option()
- WordPress (+WPMU) Import/Export ALL settings?
- Does WordPress MultiSite use separate MySql databases?
- Hook up MU site creation
- What are Attributes used for in a WordPress Multisite?
- Multisite Network menu links not updating
- How to get option values set from all sites within a Multisite setup?
- Bulk theme settings in wordpress multisite
- What is the function to get options of the parent site of a multisite network?
- wp-config dynamic hostname in WP_HOME and WP_SITEURL
- WordPress Network admin options page: how to store options and where will they be stored?
- ERR_TOO_MANY_REDIRECTS when i config my subdomains
- Register submenu on network menu from the subsite
- Why is MySQL receiving such a large serialized object?
- How do you update a network option value in the DB via a hook
- get_site_option / update_site_option – the main site and sub sites do not share the same storage
- Multisite Equivalent of `register_setting`?
- wp option get blogname –url=my-sub-site.com returning main site option
- Multisite – each site with it’s own set of users
- What could cause wpmu_create_blog to throw “Already Installed” Error on multisite?
- Update siteurl and home in multisite subsites to https
- multisite shared settings
- Multisite and plugins options
- personal_options hook on WordPress multisite
- How to display update message only to admin
- add_action insert html
- How to set an option for all sites in my Multisite network?
- How to use same email for multiple users
- Changing Plugin Load Order
- wp_get_attachment_image_src multisite issue
- Transfer Subdomain site to Multisite setup
- WP REST API – Multisite – get posts from all sites
- What is the best way to setup wordpress development environment for freelancers with version control?
- Get source from the_post_thumbnail
- Create a plugin to change the action to which a function is hooked
- Creating a better multi-site search experience
- BackPress – which libraries i need to load to work with Multisite?
- How do I maintain static directories on multisite subdomains?
- Login on Multiple Sub-Domains without Multisite
- Prevent images on self-hosted WordPress from being served from WordPress.com
- WordPress multisite fails to create a new site in the network
- Changing path for media upload folder in wordpress multisite
- Setup a multisite to a running website
- Set global $wp_query/$post variable for dynamic page generation
- Viewing / Editing A Multisite website after domain has expired
- How to set up wordpress domain mapping on MAMP Pro
- How to show different sub sites based on Member’s user name In word press?
- Debugging unserialize errors [closed]
- new site admin not able to browse categories in wordpress multisite
- Multisite / Network – Stable?
- Eliminate MultiSite Network Splogs
- Copy user role on multisite so the user can access subsites with same role
- Multisite 404 for pages in includes subdirectory
- Multisite infinite redirect loop
- WordPress Multisite Dilemma!
- Certain lines added to our wp-config.php file are being removed, every day
- WordPress multisite installation subdomains not working properly
- Action / Hook when a new plugin is added
- How to use the same users table on multiple wordpress sites
- The function called on the wp head hook becomes null
- My Sites link in multisite is incorrect
- Multisite subdirecty added inside URL to uploaded files
- local wordpress multisite not working on AWS development server “error establishing database connection”
- WP Multi Site – configure Sub domain pointing to parent sub directory
- Is it better to embed widgets on posts or pages?
- How to store additional data that is related to core data
- Migration of Multisite WordPress site from http to https
- WordPress Multisite – Auto enable theme
- Network redirect issues
- Can add_image_size be added earlier
- Multisite install in a subfolder won’t work with www
- Domain mapping breaks some plugin scripts and css
- How to force WP to create a users table in multisite configuration?
- Updating themes customized by users
- WordPress and multisites, the rigth choice?
- Best Way to Setup a Network of WP Sites?
- Ninja Forms: Front-End Forms, Post ID?
- get_category_link() or get_tag_link() return wrong category/tag base in wordpress multisite