Created
August 18, 2015 15:26
-
-
Save LinzardMac/edd1bc592ec7093956d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
foreach($users as $user) { | |
$tagged_user_photos = get_user_meta($user, 'tagged_photos', false); | |
var_dump($tagged_user_photos); | |
$tagged_user_photos[] = $post_id; | |
update_user_meta( $user, 'tagged_photos', $tagged_user_photos); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment