query_vars['view-subscription'] ) && WC_Subscriptions::is_woocommerce_pre( '2.6' ) ) { $located = wc_locate_template( 'myaccount/view-subscription.php', $template_path, plugin_dir_path( WC_Subscriptions::$plugin_file ) . 'templates/' ); } return $located; } /** * Get the view subscription template. A post WC v2.6 compatible version of @see WCS_Template_Loader::add_view_subscription_template() * * @since 2.0.17 */ public static function get_view_subscription_template() { wc_get_template( 'myaccount/view-subscription.php', array(), '', plugin_dir_path( WC_Subscriptions::$plugin_file ) . 'templates/' ); } /** * Get the subscription details template, which is part of the view subscription page. * * @param WC_Subscription $subscription Subscription object * @since 2.2.19 */ public static function get_subscription_details_template( $subscription ) { wc_get_template( 'myaccount/subscription-details.php', array( 'subscription' => $subscription ), '', plugin_dir_path( WC_Subscriptions::$plugin_file ) . 'templates/' ); } /** * Get the subscription totals template, which is part of the view subscription page. * * @param WC_Subscription $subscription Subscription object * @since 2.2.19 */ public static function get_subscription_totals_template( $subscription ) { wc_get_template( 'myaccount/subscription-totals.php', array( 'subscription' => $subscription ), '', plugin_dir_path( WC_Subscriptions::$plugin_file ) . 'templates/' ); } } WCS_Template_Loader::init();