/*
Theme Name: Neve Child
Theme URI: https://themeisle.com/themes/neve/
Template: neve
Author: ThemeIsle
Author URI: https://themeisle.com
Description: Neve is a super fast, easily customizable, multi-purpose theme. It’s perfect for blogs, small business, startups, agencies, firms, e-commerce shops (WooCommerce storefront) as well as personal portfolio sites and most types of projects. A fully AMP optimized and responsive theme, Neve will load in mere seconds and adapt perfectly on any viewing device. While it is lightweight and has a minimalist design, the theme is highly extendable, it has a highly SEO optimized code, resulting in top rankings in Google search results. Neve works perfectly with Gutenberg and the most popular page builders (Elementor, Brizy, Beaver Builder, Visual Composer, SiteOrigin, Divi). Neve is also WooCommerce ready, responsive, RTL &amp; translation ready. Look no further. Neve is the perfect theme for you!
Tags: blog,custom-logo,e-commerce,rtl-language-support,grid-layout,one-column,two-columns,custom-background,custom-colors,custom-header,custom-menu,featured-image-header,featured-images,flexible-header,full-width-template,sticky-post,theme-options,threaded-comments,translation-ready,accessibility-ready,wide-blocks,block-styles,footer-widgets,portfolio,left-sidebar,right-sidebar
Version: 3.8.11.1724227244
Updated: 2024-08-21 10:00:44

*/
function syl_add_dostepy_endpoint() {
add_rewrite_endpoint( 'dostepy', EP_ROOT | EP_PAGES );
}
add_action( 'init', 'syl_add_dostepy_endpoint' );
function syl_dostepy_query_vars( $vars ) {
$vars[] = 'dostepy';
return $vars;
}
add_filter( 'query_vars', 'syl_dostepy_query_vars', 0 );
function syl_add_dostepy_link_my_account( $items ) {
$items['dostepy'] = 'Dostęp do stron';
return $items;
}
function syl_add_dostepy_endpoint() {
add_rewrite_endpoint( 'dostepy', EP_ROOT | EP_PAGES );
}
add_action( 'init', 'syl_add_dostepy_endpoint' );
function syl_dostepy_query_vars( $vars ) {
$vars[] = 'dostepy';
return $vars;
}
add_filter( 'query_vars', 'syl_dostepy_query_vars', 0 );
function syl_add_dostepy_link_my_account( $items ) {
$items['dostepy'] = 'Dostęp do stron';
return $items;
}
add_filter( 'woocommerce_account_menu_items', 'syl_add_dostepy_link_my_account' );
function syl_dostepy_content() {
echo '
Dostęp do stron
';
echo do_shortcode( '[woocommerce-payperpost template="purchased"]' );
} add_action( 'woocommerce_account_dostepy_endpoint', 'syl_dostepy_content' );
function woocommerce_my_account_order() {
$myorder = array(
'dashboard' => __( 'Kokpit', 'woocommerce' ),
'orders' => __( 'Zamówienia', 'woocommerce' ),
'downloads' => __( 'Pliki do pobrania', 'woocommerce' ),
'dostepy' => __( 'Dostęp do stron', 'woocommerce' ),
'edit-address' => __( 'Adres', 'woocommerce' ),
'edit-account' => __( 'Edycja danych', 'woocommerce' ),
'customer-logout' => __( 'Wyloguj', 'woocommerce' ),
);
return $myorder;
}
add_filter ( 'woocommerce_account_menu_items', 'woocommerce_my_account_order' );


