Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
add_filter( 'mycred_bp_history_num_to_show', 'buddypress_number_of_rows_to_show' );
function buddypress_number_of_rows_to_show( $num ) {
$user_id = bp_displayed_user_id();
$number = xprofile_get_field_data( 'Your User Fields Title', $user_id );
if ( ! empty( $number ) )
return $number;
return $num;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.