How to Modify My Plugin’s Admin Settings so that the Plugin can be Added to a Specific Page?

You are registering user_profile_template function to run during the page_template filter hook, but your function is actually called registration_template. This is why your selected page might not be loading your custom template file. That’s one thing. Another is that with this method, the selected page will look completely different than all other page in the … Read more

what file is required to be created in plugin folder in order to show all the post content of a CPT with the help of permalink

Your post type name is event so create a copy of your single.php then rename it as single-event.php and keep it together in the same folder with single.php. Now you can edit single-event.php file to or display whatever you have in your event posts. Again, copy and rename single.php file to single-event.php. it will serve … Read more