Skip to content

Instantly share code, notes, and snippets.

Last active May 4, 2016 19:18
What would you like to do?
// Get the total count of posts from each blog
$network_post_count = array_sum( $network_post_count );
$count = str_pad( $network_post_count, 2, '0', STR_PAD_LEFT );
update_user_meta( $user_id, 'network_post_count', $count );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment