I wrote this simple plugin but its not working – help
-
hi I wrote the below plugin to send an email once posts are published, but nothing happens – where is my mistake? thank you!
<?php
function send_email(){
$to = “[email protected]”;
$subject = single_post_title();
$body = single_post_title();
the_excerpt();
function new_excerpt_more($more) {
global $post;
return ‘ID) . ‘”>Read the Rest…‘;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);
}
add_action(‘publish_post’,’send_email()’);
?>[mod: please read and apply the forum guidelines for posting code]
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘I wrote this simple plugin but its not working – help’ is closed to new replies.