public function getAttributionsMeta( $ids ) {
		$all_attributions = [];

		if ( $ids ) {
			foreach ( $ids as $id ) {
				$all_attributions[ $id ]['title'] = get_the_title( $id );
				$all_attributions[ $id ]['title_url'] = get_post_meta( $id, 'pb_media_attribution_title_url', true );
				$all_attributions[ $id ]['author'] = get_post_meta( $id, 'pb_media_attribution_author', true );
				$all_attributions[ $id ]['author_url'] = get_post_meta( $id, 'pb_media_attribution_author_url', true );
				$all_attributions[ $id ]['adapted'] = get_post_meta( $id, 'pb_media_attribution_adapted', true );
				$all_attributions[ $id ]['adapted_url'] = get_post_meta( $id, 'pb_media_attribution_adapted_url', true );
				$all_attributions[ $id ]['license'] = get_post_meta( $id, 'pb_media_attribution_license', true );
			}
		}

		return $all_attributions;
	}
public function getAttributionsMeta( $ids ) {
		$all_attributions = [];

		if ( $ids ) {
			foreach ( $ids as $id ) {
				$all_attributions[ $id ]['title'] = get_the_title( $id );
				$all_attributions[ $id ]['title_url'] = get_post_meta( $id, 'pb_media_attribution_title_url', true );
				$all_attributions[ $id ]['author'] = get_post_meta( $id, 'pb_media_attribution_author', true );
				$all_attributions[ $id ]['author_url'] = get_post_meta( $id, 'pb_media_attribution_author_url', true );
				$all_attributions[ $id ]['adapted'] = get_post_meta( $id, 'pb_media_attribution_adapted', true );
				$all_attributions[ $id ]['adapted_url'] = get_post_meta( $id, 'pb_media_attribution_adapted_url', true );
				$all_attributions[ $id ]['license'] = get_post_meta( $id, 'pb_media_attribution_license', true );
			}
		}

		return $all_attributions;
	}
public function getAttributionsMeta ( $ ids ) { $ all_attributions = [ ] ; if ( $ ids ) { foreach ( $ ids as $ id ) { $ all_attributions [ $ id ] [ 'title' ] = get_the_title ( $ id ) ; $ all_attributions [ $ id ] [ 'title_url' ] = get_post_meta ( $ id , 'pb_media_attribution_title_url' , true ) ; $ all_attributions [ $ id ] [ 'author' ] = get_post_meta ( $ id , 'pb_media_attribution_author' , true ) ; $ all_attributions [ $ id ] [ 'author_url' ] = get_post_meta ( $ id , 'pb_media_attribution_author_url' , true ) ; $ all_attributions [ $ id ] [ 'adapted' ] = get_post_meta ( $ id , 'pb_media_attribution_adapted' , true ) ; $ all_attributions [ $ id ] [ 'adapted_url' ] = get_post_meta ( $ id , 'pb_media_attribution_adapted_url' , true ) ; $ all_attributions [ $ id ] [ 'license' ] = get_post_meta ( $ id , 'pb_media_attribution_license' , true ) ; } } return $ all_attributions ; }
Returns the gamut of attribution metadata that can be associated with an
attachment

@param array $ids of attachments

@return array all attribution metadata
Returns the gamut of attribution metadata that can be associated with an attachment