$ adobeXMP =&adobeXMPforWP :: get_instance();/**
/ **
* Some default class properties can be modified.
*一些默认的类属性可以修改。
*/
* /
$adobeXMP->use_cache = true;
$ adobeXMP-> use_cache = true;
// default
//默认
$adobeXMP->max_size = 512000;
$ adobeXMP-> max_size = 512000;
// default
//默认
$adobeXMP->chunk_size = 65536;
$ adobeXMP-> chunk_size = 65536;
// default
//默认
/**
/ **
* The $id can be a WordPress Media Library image ID,
* $ id可以是WordPress媒体库的图像ID,
* or NextGEN Gallery image ID in the form of ngg-##.
*或以ngg-##形式的NextGEN Gallery图像ID。
*/
* /
$image_xmp = $adobeXMP->get_xmp( $id );
$ image_xmp = $ adobeXMP-> get_xmp($ id);
echo '
Photograph by '.$image_xmp['Creator'].'
';回显“
由.. $ image_xmp ['Creator']拍摄的照片。” p>';