How to send post notification when a Author and Contributor post?

Try this. I’ve tested it and it works although your questions is not so clear (snippet VS description). function wpkse_144405_on_post_publish( $ID, $post ) { $users = get_users( array( ‘fields’ => array( ‘user_email’ ) ) ); $email_subject=”New post has been published”; $message .= ‘New post has been published: ‘ . $post->post_title . ‘ You can preview … Read more

Display emails of users who already posted at least once

You can place following code in your functions.php file & use the shortcode [myblogwriters min_posts=”1″] anywhere in the page/post content and can also change the min_posts value 🙂 function show_min_one_post_writers($atts){ global $wpdb; $attrs = shortcode_atts( array( ‘min_posts’ => ” ), $atts ); $min_posts = $attrs[‘min_posts’]; $authors = $wpdb->get_col(“SELECT `post_author` FROM (SELECT `post_author`, COUNT(*) AS `count` … Read more

Email user on WordPress upgrade

I forked the above plugin you mentioned as WP Updates Notifier Maybe you want to look at that instead? If you want to include it in your theme all you do is copy the plugin file and place in your theme functions file instead. If you need further help modifying this plugin leave a comment … Read more

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