lp__get_single_template( $post_type )
This function is used to retrieve the template selected for a specific custom post type from a launchpad plugin settings. It looks for a field with the name “{$post_type}_page_template” and returns the value of that field if it exists. If no template is selected, it falls back to a default template based on the post type.
Plugin
Namespace
Launchpad
Parameters
string
$post_type
The slug of the post type.
Return
string
$use_template
The slug of the selected template or the default template.
Source
File: \includes\lp-helper-functions.php
function lp__get_single_template( $post_type ){
$use_template = lp__get_field_value("{$post_type}_page_template", 'option');
return $use_template ? $use_template : "single-{$post_type}-template-1";
}