I have include wp-config, should I add global $wpdb also?

If you need a processing endpoint with access to the WordPress API, use the admin_post_ action and eliminate the need to manually include wp-config.php or any other WordPress files. // add for logged-in visitors add_action( ‘admin_post_your_action’, ‘prefix_your_action_function’ ); // for non logged-in visitors add_action( ‘admin_post_nopriv_your_action’, ‘prefix_your_action_function’ ); function prefix_your_action_function() { global $wpdb; // your processing … Read more

Steps for WordPress over SSL

It is not absolutely necessary to add anything to the config file. However it’s a good idea to do a test to look for any unsecured Http calls, such as stylesheets or Scripts. A good resource for this is https://www.whynopadlock.com/. The force SSL Setting can sometimes help with requests coming from plug-ins or anything you … Read more

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