Changing A Mockup URL Slug

ProjectHuddle 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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.