ap_update_user_temp_media_count( integer $user_id = false )

Description #

Update users temproary media uploads count.

Parameters #

  • $user_id
    integer (Optional) User ID. Default value: false

Source #

File: includes/upload.php

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

	// @codingStandardsIgnoreLine
	update_user_meta( $user_id, '_ap_temp_media', ap_count_users_temp_media( $user_id ) );
}

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