WooCommerce lost password reset flow not working with SendGrid (redirect loop)

If you’re using SendGrid to process emails from WooCommerce and have click tracking enabled, links that use $_GET vars will break. Sendgrid uses a URL sanitizer that converts the &id= to &id= and that creates an issue in WooCommerce… The password reset form redirect looks for two get vars, $_GET[‘key’] and $_GET[‘id’], and if they’re … Read more

Redirect a password protected page?

Tom J Nowell confirmed what was happening. Inserting wp_redirect in a template causes the page either to partially load or not load at all. It needed to be placed before the opening <html> to work as it would load everything before </head> then stop.

Password reset message – change the network_home_url( ‘/’ )

Let’s check the Codex and follow the links to the source: 3029 function network_home_url( $path=””, $scheme = null ) { 3030 if ( ! is_multisite() ) 3031 return home_url($path, $scheme); 3032 3033 $current_site = get_current_site(); 3034 $orig_scheme = $scheme; 3035 3036 if ( ! in_array( $scheme, array( ‘http’, ‘https’, ‘relative’ ) ) ) 3037 $scheme … Read more

WordPress protected Pages

The protected post system uses POST so by default, no you can’t. However, here is a bare-bone mechanism that will let you do this. function bypass_protected_post() { if (is_single()) { global $post,$_GET; if (isset($post->post_password)) { $bypasskey = get_post_meta($post->ID, ‘bypasskey’, true); if (isset($_GET[‘bypasskey’]) && $_GET[‘bypasskey’] == $bypasskey) { $post->post_password = null; } } } } add_action(‘wp_head’,’bypass_protected_post’); … Read more

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