WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. alm06130
    Member
    Posted 2 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;
    }

    http://wordpress.org/extend/plugins/facebook-status-email-updater/

  2. cjellison
    Member
    Plugin Author

    Posted 1 year 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

About this Topic