March 26, 2014 Development


I was dealing with network DB option filtering few weeks back and I was unable to find a proper way to use update_option, update_site_option or any relevant function to update the main site’s option value. I just found update_blog_option which is pretty cool and it does the following inside: … switch_to_blog( $id ); $return =

July 21, 2012 Development

Settings API in 9 Steps

I’m going to update my DX Plugin Base script soon with sample code, but Settings API are something that needs a few lines of text too. There are several good resources for that, such as: (awesome btw) But for the very quick overview of what to be done, that’s needed: hook to admin_init