|

Changing the mockup download

Sometimes you’ll want to change the download button on your Mockup project to have the user download a project file or a zip of all the project images. ProjectHuddle makes it easy to change the download button link with a filter. You can change the mockup download link by adding this to your theme or child theme’s functions.php file:

<?php
/**
 * Change mockup download link
 */
function wp_1493_custom_mockup_download_link( $link, $post ) {
	
	// change 3 to your project id
     if ( $post->ID == 3 ) {
         return 'http://yoursite.com/images.zip';
     }

     return $link;
}
add_filter( 'ph_mockup_download_link', 'wp_1493custom_mockup_download_link', 10, 2 );

Be sure to change 3 to the mockup project id of your choice! Please reach out to us if you have any questions.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top