- Display a dialog when user approves an image
- Changing A Mockup URL Slug
- Extend Backbone Models, Views, Collections
- Adding Custom Scripts and Styles
- ph_website_publish_thread
- New Comment Threads
- Add additional notification emails
- Welcome message for new users on mockup projects
- Change the subscribed user email based on a role
- Display a dialog when the user submits a comment
- Auto-Close Mockup Comment After New Comment
- Changing the mockup download
- Add Settings To Extensions Page
- Listening for Javscript Events
- Change default mockup project options
- Overriding and Changing Templates
- How to Install SureFeedback & Addons
- How to Update SureFeedback
- Should I Install SureFeedback on My Main Site or a Dedicated Installation?
- Caching and SureFeedback
- Dashboard Shortcode
- Adding A Project Shortcode To Your Site 3.1.x and lower
- Project Shortcode
- Hosting
- Cloudways Compatibility
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.
On this page