get( 'Name' ); $version = $theme->get( 'Version' ); // translators: %1$s is the child theme name; %2$s is the child theme version; %3$s is the parent theme name return sprintf( __( '%1$s v%2$s – a child theme of %3$s', 'reservoir' ), $theme, $version, $parent ); } // reservoir_admin_version_output() // this filter is applied in reservoir_setup() /** * Extend description to reference the use of the child theme */ function reservoir_custom_description( $description ) { // Child theme $theme = wp_get_theme(); $template = esc_html( $theme->get( 'Template' ) ); $name = esc_html( $theme->get( 'Name' ) ); // Parent theme $template_theme = wp_get_theme( $template ); $template_desc = $template_theme->get( 'Description'); // translators: %1$s is the name of the child theme; %2$s is the name of the parent theme $output = '

' . sprintf( esc_html__( '%1$s is a child theme of %2$s', 'reservoir' ), $name, ucfirst( $template ) ) . '

'; return $output . $description . '



' . $template_desc . ''; } // reservoir_custom_description() // this filter is added in reservoir_setup() // FIN