='); } /** * Retrieves the twig instance for WP RSS Aggregator. * * @since 4.12 * * @return Environment The twig instance. */ function wprss_twig() { return wpra_get('twig'); } /** * Loads a WPRSS twig template. * * @since 4.12 * * @param string $template The template name. * * @return TwigTemplate */ function wprss_load_template($template) { return wpra_get('twig/collection')[$template]; } /** * Loads and renders a WPRSS template. * * @since 4.12 * * @param string $template The template name. * @param array $context The template context. * * @return string */ function wprss_render_template($template, $context = []) { return wprss_load_template($template)->render($context); }