I'm new to WP and trying to configure the 'My Account' page on a WP site. The site uses the Paid Memberships Pro (PMP) plugin. In the WP admin console > Pages, there is a page called 'My Account'. The content of the page is '[pmpro_account]', which is the shortcode for the PMP account page. From what I can tell, the shortcode is ultimately rendered by the pmpro_account.php page. However, the code on that page does not match what you see when you browse to the page. After more digging, I noticed the page uses a template, called 'My Account':
I found the template (myaccount-page.php), which just does this:
get_template_part( 'loop', 'myaccount' );
then found the loop page (loop-myaccount.php), which just does this:
<?php the_content(); ?>
After searching all of the files, I found an account.php, which contains the actual content that I see when browsing to the page. How did WordPress know to render this page? How does WP determine what gets generated when there is page, a shortcode and a template?