Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

How CDN replaces original URLs

$
0
0

Replies: 0

Hello,

I am planning to remove all images from server however the WP-Lister for eBay plugin currently requires images to be on same site.

Please can you help me figure out how the CDN part of your plugin replaces the URLs and process the listing description before it is sent to eBay by using the wplister_filter_listing_item filter like so:

(Snippet below kindly provided by WP-Lister developer)

add_filter( ‘wplister_filter_listing_item’, ‘run_cdn_replacements’ );
function run_cdn_replacements( $item ) {
// Run the replacements on $item->Description here… This is a demo only
$item->Description = apply_filters( ‘the_content’, $item->Description );

return $item;
}

The goal here is to allow WP-Lister to output image URLs same as the CDN URL.

I hope you are able to help!

Kind regards

  • This topic was modified 18 minutes ago by lpackman.

Viewing all articles
Browse latest Browse all 59525

Trending Articles