Há alguns plug-ins que lidam com notificações por e-mail , mas todos parecem agir como um serviço de assinatura para todos os usuários do WordPress.
Para notificar apenas você quando uma postagem ou página for publicada:
/**
* Send an email notification to the administrator when a post is published.
*
* @param string $new_status
* @param string $old_status
* @param object $post
*/
function wpse_19040_notify_admin_on_publish( $new_status, $old_status, $post ) {
if ( $new_status !== 'publish' || $old_status === 'publish' )
return;
if ( ! $post_type = get_post_type_object( $post->post_type ) )
return;
// Recipient, in this case the administrator email
$emailto = get_option( 'admin_email' );
// Email subject, "New {post_type_label}"
$subject = 'New ' . $post_type->labels->singular_name;
// Email body
$message = 'View it: ' . get_permalink( $post->ID ) . "\nEdit it: " . get_edit_post_link( $post->ID );
wp_mail( $emailto, $subject, $message );
}
add_action( 'transition_post_status', 'wpse_19040_notify_admin_on_publish', 10, 3 );
Você pode soltar isso no functions.php
do seu tema ou salvá-lo como um plug-in (o que pode ser mais apropriado, pois não é exatamente relacionado ao 'tema').