Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bp_question_record_activity( $args = '' ) {
- global $bp;
- if ( !function_exists( 'bp_activity_add' ) )
- return false;
- $defaults = array(
- 'user_id' => $bp->loggedin_user->id,
- 'action' => '',
- 'type' => false,
- );
- $r = wp_parse_args( $args, $defaults );
- extract( $r );
- return bp_activity_add( array( 'user_id' => $bp->loggedin_user->id, 'action' => 'a question was added', 'type' => qa_question ) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement