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?
- Unable to change blog language in multisite
- Multisite: How to get a list of sites by locale
- WordPress Multisite loads wrong subdomain dashboard
- The function called on the wp head hook becomes null
- Media library links broken WordPress Multisite after SSL update
- Redirecting specific sites to HTTP in WordPress Multisite
- Save_post – Warning: Cannot modify header information
- Serve theme and plugins assets from correct domain on multi-domain multisite
- What is the earliest Hook a Script can use?
- When hooking wp-cron to system
- Redirect Function Prevents Images from Showing in Front-end Media Uploader
- Moving from a non WordPress site to a WordPress Site – Login between both sites
- wp cli search and replace on –network Error reconnecting to the database
- In Multisite – main site blog post should be display in minisite or subsite
- Can I use the main Multisite as a backend only?
- Possible to reverse proxy WP multisite to a separate server with NGINX?
- How to hold posts and accounts for moderation on WordPress Network site
- “Multisite support is not enabled.” After Multisite Config Changes
- Problems with WordPress multisite directories/url structures and admin access after migration
- Number of total comment does not tally with the number of comment?
- String translation within WordPress multisite with i18n not working on all sites
- Hooking into the HTML header container
- multisite 404 subfolder same name slug as site
- Display posts from one network site on another
- remove_action not working for a function
- Website creation for multiple clients but from a single account on multiple host name
- After switch domain, some parts of my site still point to my old domain
- Is mature Multisite
- How Do I Unhook This Parent Theme Function?
- Hook to add content after date in post?
- Parameters in woocommerce_before_add_to_cart_button hook
- Is update_post_meta used when save_post action hook is invoked?
- Automatic registration on main site upon user registration on Multisite
- let user select roles in the wordpress subsites
- Get latest posts from multisite
- How to map domains to specific pages in WordPress and display them in the address bar?
- multiple domains point to same site on WP-MU
- My Sites link in multisite is incorrect
- Change permalink structure in all sites of a multisite
- WordPress API – sign-up to multiple Multisites from one single form
- WordPress network, add extra directory to subsite urls
- WP Multisite child theme: get_template_directory_uri() seeks it’s own subdirectory instead of directory of parent theme
- WP Multisite Sub-Domain Error
- do_action not working in loop
- Multisite WordPress doesn’t work properly on virual hosts
- Get original value in save_post action hooka
- Rewriting request to another site
- Enable HTTPS for AWS hosted multisite domain (with AWS purchased SSL) on already created Load Balancer?
- Downloading customized theme from wordpress
- I want to replicate my sub site similar to my primary site in WordPress Multisite Network
- Getting file errors in a WordPress Multisite ADMIN