Facebook Status - Email Updater
[resolved] bad arg in fbseu_email_facebook? (2 posts)

  1. alm06130
    Posted 4 years ago #

    The plugin doesn't work, I found that the function fbseu_email_facebook expects $post_Id as argument.
    But (see in wp-includes/post.php), the do_action in function wp_transition_post_status transmits $post.
    So I had to modify as follow to make the plugin work:

    function fbseu_email_facebook($post)  {
       $SECRET_EMAIL = get_option('fbseu_secret_email');
       $title = $post->post_title;
       $href = get_permalink($post->ID);
       mail( $SECRET_EMAIL, $title.' '.$href , '     ');
       return $post->ID;


  2. cjellison
    Plugin Author

    Posted 4 years ago #

    Thanks for the notice and the fix! I added it into version 1.2.

    I really appreciate your help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook Status - Email Updater
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic