Options site set empty fields after submitting

A few things to note in your code: Two inputs share the same name of “email”, so when those values get sent in the form submission, the second one will overwrite the first. The input name attribute value should match the name of the option being saved. Instead of “email”, use “fhwtest_email”. Without that, the … Read more

Which action hook to update custom field at network/site-info.php in multisite on update site info

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 ); } } } … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)