I want to display page templates dependent on what user is currently logged in (user role).
WordPress has a built in page attributes dropdown selection for templates. Here's an example of the functionality I'm looking for.
Scenario #1: Editor is logged into the WordPress dashboard. They go to create a page. In the page UI they select the dropdown for templates. The drop down only contains templates: A, B, and C.
Scenario #2: Admin is logged into the WordPress dashboard. They go to create a page. In the page UI they select the dropdown for templates. The drop down shows templates: A, B, C, D, and E.
Basically I'm trying to figure out how to display a limited amount of templates based on the user's role and all templates if the user's role is an Admin.