Override a single episode template part from a child theme
Theme developers can replace any single template part by placing a matching file in their child theme’s benecaster/ directory — the full plugin templates/ path is mirrored exactly. Override resolution order: child theme → parent theme → plugin default. Only the first readable file found is used. Use benecaster_locate_template() to confirm an override is in effect; use benecaster_get_template_path() to get the resolved path without loading it.
Code
<?php
// Child theme: wp-content/themes/my-child/benecaster/episode/title.php
// This file replaces the plugin's episode/title.php automatically — no PHP code needed.
// Just create the file and Benecaster will use it.
// To confirm the override is active (e.g. in a theme options panel or debug page):
$override_path = benecaster_locate_template( 'episode/title' );
if ( $override_path ) {
echo 'Theme override active: ' . esc_html( $override_path );
}
// To get the path that would be loaded (override or plugin default):
$path = benecaster_get_template_path( 'episode/title' );