/array_sum_post_counts.php Secret
Last active
May 4, 2016 19:18
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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