Skip to:
Content
Pages
Categories
Search
Top
Bottom

How To Get Admin Updates of All Site Activity

  • I assumed this would be an easy switch to turn on, but couldn’t find anything from a few searches.

    I’m using buddypress – mostly the forum feature, and I want an email notification each time something is posted. (client request).

    Any help would be appreciated – this is only admin emails I’m looking for.

Viewing 2 replies - 1 through 2 (of 2 total)

  • Roger Coathup
    Participant

    @rogercoathup

    There’s no built in switch to do this, but it is quite easy to code –

    You’d need to hook onto the bp_activity_add action, and use the messages_new_message() function to send the email to the admin.

    messages_new_message() worked, but I was looking for a function to send an email and this worked for the first activity (Doh!) and gave me trouble to troubleshoot. In the end I used the wordpress wp_mail() function – still not sure why the default php function mail() didn’t work.

    Thanks for the answer Roger. Definitely helped me shortcut some time.

    -Bob

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Get Admin Updates of All Site Activity’ is closed to new replies.
Skip to toolbar