Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function update_releases($complete_array) {
- $release_pod = pods('release');
- foreach ($complete_array as $split) {
- foreach ($split as $item) {
- $pod_id = $item['rel_id'];
- $pod_img = pods_attachment_import( $item['rel_cover_url'], $pod_id, false );
- $data = array(
- 'rel_spotify_url' => $item['rel_spotify_url'],
- 'rel_cover' => $pod_img
- );
- $release_pod->save($data, null, $pod_id);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement