- 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 A Mockup URL Slug
SureFeedback has a built-in filter to change the custom post type urls used for mockups and websites. To change the url for mockup projects, add this code to your theme or child theme’s functions.php file:
/**
* Change post type slug
*/
function wp123_ph_change_post_type_slug( $args ) {
$args['rewrite'] = array( 'slug' => 'mockup' );
return $args;
}
add_action( 'ph_register_post_type_project', 'wp123_ph_change_post_type_slug' );
Change “mockup” to whatever you want in your url. After you add this code, be sure to resave permalinks under Settings > Permalinks
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