How To Set a Page as the Parent of a WordPress Custom Post Type

What if you needed to set a particular page or post in your website as the parent to your new custom post types?

Here’s a solution for that.