As the title suggests I would like to receive the topic author as an integer I am using it in conjunction with myCRED, so far, I have tried this:
$user_id = bbp_get_topic_author_id( $topic_id = 0 ); $mycred = mycred(); if ( ! $mycred->exclude_user( $user_id ) ) $mycred->update_users_balance( $user_id, 1 );
I assumed bbp_get_topic_author_id returned a integer like
get_current_user_id but the script acted as if the line didn't exist and continued with the rest of the plugin. This makes me assume that it is returning some variable but cannot be understood by mycred. Thanks in advance.
P.S I am unsure what to tag this so I have only selected bbpress