Create a gist now

Instantly share code, notes, and snippets.

<?php
// 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