Send confirmation email when a user’s role is upgraded

Send email notification when user role changes – Adding this snippet to the functions.php of your WordPress theme will send the member an email notification when the user’s role has changed. function user_role_update( $user_id, $new_role ) { $site_url = get_bloginfo(‘wpurl’); $user_info = get_userdata( $user_id ); $to = $user_info->user_email; $subject = “Role changed: “.$site_url.””; $message = … Read more

I just had an email from wordpress. what does it mean?

That means you have been linked from that page (See Codex for PingBack) A Quote from Codex – Pingbacks were designed to solve some of the problems that people saw with trackbacks. The official pingback documentation makes pingbacks sound an awful lot like trackbacks:

Using PHP mail; getting Header warning

You can’t use header in the middle of a page, content has already been sent to the browser, so that means headers were already sent. Look at the code in the myriad of form plugins out there to see how they handle this- hook an action before the template is loaded and do your form … Read more

WordPress and IPN problem

First of all, is better use get_template_directory_uri() instead of bloginfo(… <input type=”hidden” name=”notify_url” value=”<?php echo get_template_directory_uri(); ?>/ipn.php”> but you are right if you think the problem is not this one. I cannot be sure, but I bet your problem is here: include_once( $_SERVER[‘DOCUMENT_ROOT’] . ‘/wp-load.php’ ); This is a problematic way to include wp-load.php, but … Read more

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