A prefix URL is used when only the name of an images is provided from your data source. This setting is optional and should only be used as needed.
Example Array with Image Name
array(
ImageSet => array(
0 => array{
name => 'image-1.jpg',
width => 600,
height => 300
),
1 => array{
name => 'image-2.jpg',
width => 600,
height => 300
),
2 => array{
name => 'image-3.jpg',
width => 600,
height => 300
)
)
);
How does Prefix URL work?
Let’s say your data source only returns the name
for the image image-1.jpg
. But the location of all images for the data source is https://some-domain.com/images/
. The WP Data Sync API will combine the Prefix URL with the image name
to provide the full path to the image.
Result would be: https://some-domain.com/images/image-1.jpg