// Only set the template if it's a valid page update_post_meta( 69, '_wp_page_template', 'card-template.php' );
https://tommcfarlin.com/programmatically-set-a-wordpress-template/
// Only set the template if it's a valid page update_post_meta( 69, '_wp_page_template', 'card-template.php' );
https://tommcfarlin.com/programmatically-set-a-wordpress-template/