- Dialog Display On User Image Approval
- Changing A Mockup URL Slug
- Extend Backbone Models, Views, Collections
- Custom Scripts & Styles
- Website Publish Action
- New Comment Threads
- Additional Notification Emails
- Welcome Message In Mockups
- Change Subscribed User Email
- Dialog Display After A Comment
- Auto-Close Mockup Comment
- Changing Mockup Download
- Add Settngs To Extension Page
- Listening JavaScript Events
- Modify Default Mockup Project Options
- Overriding & Changing Templates
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