ap_update_user_reputation_meta( integer|bool $user_id = false )

Description #

Update user reputation meta.

Parameters #

  • $user_id
    integer | bool (Optional) User id. Default value: false

Source #

File: includes/reputation.php

function ap_update_user_reputation_meta( $user_id = false ) {
	if ( false === $user_id ) {
		$user_id = get_current_user_id();
	}

	update_user_meta( $user_id, 'ap_reputations', ap_get_user_reputation( $user_id ) ); // @codingStandardsIgnoreLine
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment