Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Last active May 4, 2016 19:18
Show Gist options
  • Save BeardedGinger/8ebeffa2a5e6e36b062331793caf76e1 to your computer and use it in GitHub Desktop.
Save BeardedGinger/8ebeffa2a5e6e36b062331793caf76e1 to your computer and use it in GitHub Desktop.
<?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