Can’t get plugin settings page to save data

While you are using Settins API, that’s why you don’t need to use update_option or add_option functions. Settings API would handle that by self. There were few issues that’s why your code is not working. 1. add_settings_section( ‘wpa_ad_insert_main’, ‘Ad Insertion Settings’, ‘wpa_ad_insert_section_text’, ‘wpa_ad_insert’ ); 3rd parameter is the callback function. Since, you don’t need this … Read more

Include user defined styles without including wp-load

If you are going to enqueue a stylesheet you should be using wp_enqueue_scripts not wp_print_styles, but you are in a bit of a gray zone between doing things “WordPress-ie” and doing things correctly for performance. The “WordPress-ie” way is to enqueue a stylesheet, but from a performance standpoint you are loading an additional resource and … Read more

How to add settings subpage from a plugin to a settings page created in theme?

This is just a typo Wrong //wvdh-startpoint add_submenu_page( ‘wvdh-startpoint’, ‘page-from-plugin’, ‘menu-from-plugin’, ‘manage_options’, ‘plugin-slug’, ‘wvdh_settings_page’ ); Correct //wdvh-startpoint add_submenu_page( ‘wdvh-startpoint’, ‘page-from-plugin’, ‘menu-from-plugin’, ‘manage_options’, ‘plugin-slug’, ‘wvdh_settings_page’ );

Multisite Network menu links not updating

Pat J’s answer is correct but left out one important step. In wp-config.php the DOMAIN_CURRENT_SITE constant must be updated or the behavior that brandozz explains will occur. When updating domains for a WordPress Multisite: Update the DOMAIN_CURRENT_SITE constant in wp-config.php define(‘DOMAIN_CURRENT_SITE’, ‘my-domain-name.com’); In DB table named “wp_sitemeta” update “siteurl” meta key In DB tables named … Read more

I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?

Check wp-config.php. It’s possible to define these values there, in which case they won’t be available as settings, which means they won’t be saved in the database. It is possible to set the site URL manually in the wp-config.php file. Add these two lines to your wp-config.php, where “example.com” is the correct location of your … Read more

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