Devam Ediyor

507129 Wordpress plugin to get post content

I am trying to make a wordpress plugin that emails the content of the post after its published to my email address. I am having some difficulty.

What i have done below doesnt work and no matter what forum i post onto, no one replies back with any suggestions.

Can someone help me finish this plugin.

function do_stuff_on_publish($post_id) {

$post= get_post($post_id);

if ($post->post_type == 'post'

&& $post->post_status == 'publish') {

$message = $post->post_content;

$email = 'email goes here';

$subject = $post->post_title;

mail($email,$subject, $message);

} // end if

} // end function


Beceriler: Her şey Kabul, WordPress

Daha fazlasını gör: i post, make a wordpress plugin, i am trying to get this, mail post wordpress, publish post, wordpress mail post, post mail wordpress, post publish, mail plugin, post content, publish content, forum post address, post email wordpress, email plugin, content subject, wordpress post email plugin, wordpress post content, wordpress forum plugin, wordpress post back, email address wordpress, post mail, forum post content, wordpress plugin publish post, post address, forum post message

İşveren Hakkında:
( 19 değerlendirme )

Proje NO: #2253056