PGP-Encrypt system-generated notifications

There’s a small PGP plugin by Tim Nash on GitHub (but it’s not in the official WordPress repository, it needs to be manually copied to wordpress plugin directory). It’s a wrapper using php-pgp library for encryption. The article where I found this link is “Encrypting emails with PGP and WordPress”. This is the only WordPress … Read more

Send Notifications to All Admins

Is there a nice little filter that someone knows about where I can hook into notifications and send the notification to each / every administrator? There is : comment_post Runs just after a comment is saved in the database. Action function arguments: comment ID, approval status (“spam”, or 0/1 for disapproved/approved). http://codex.wordpress.org/Plugin_API/Action_Reference#Comment.2C_Ping.2C_and_Trackback_Actions And user_register which… … Read more

How to get a nofication when post submitted

You could try this inside your themes functions.php: its a function by dagon design function dddn_process($id) { global $wpdb; $tp = $wpdb->prefix; $result = $wpdb->get_row(” SELECT post_status, post_title, user_login, user_nicename, display_name FROM {$tp}posts, {$tp}users WHERE {$tp}posts.post_author = {$tp}users.ID AND {$tp}posts.ID = ‘$id’ “); if ($result->post_status == “publish”) { $message = “”; $message .= “A new … Read more

General Setting Allow Multiple Email Notification

It’s not really a WP-specific solution, but if you set up a Gmail address (and likely others), you could create a filter to automatically forward notifications generated by WordPress to other admins. Short of WordPress adding multi-email notifications, that might be a workaround to temporarily solve the problem.

Disable WP notifications for commenting on own posts

The function that sends emails to the post author is called wp_notify_postauthor() and is located in /wp-includes/pluggable.php. This means that the function is “pluggable” and can be overridden by another function with the same name. We can make a simple plugin to do this. This is the code we’ll be adding to the function to … Read more

How to add notification in the sidebar of the administration panel when a Custom post type is created? [duplicate]

It is shockingly simple: you have to dyamically set the admin page title, adding a specific markup: <span class=”awaiting-mod count-3″> <span class=”pending-count”>3</span> </span> So for example if you want to show the number of custom posts you have to do something like this when declaring the options page: $notif_count = wp_count_posts(‘my_post_type’); //insert your post type … Read more

admin_notices not working in post editor

So it looks like there is some page redirecting going on in the post updating process, hence why I can’t even access a $GLOBALS variable. The only alternative I found to use was to use a session variable. Something like: add_filter( ‘pre_insert_term’, ‘pre_insert_term_action’, 10, 2 ); add_action( ‘admin_notices’, ‘show_example_error’ ); function pre_insert_term_action( $term, $taxonomy ) … Read more

New post email alert

There are often issues with setting up email subscriptions. Hosting providers are very tired of spam and often put harsh restrictions on email rate and volume, especially for cheaper hosting plans. In practice such feature is often implemented with help of external service. FeedBurner is popular for this, because a lot of people use it … Read more

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