Answer the question
In order to leave comments, you need to log in
How to add your endpoint to breadcrumbs?
Registered my endpoint:
function add_wish_list_endpoint()
{
add_rewrite_endpoint('wish-list', EP_ROOT | EP_PAGES);
}
add_action('init', 'add_wish_list_endpoint');
function wish_list_query_vars($vars)
{
$vars[] = 'wish-list';
return $vars;
}
add_filter('query_vars', 'wish_list_query_vars', 0);
function show_wish_list()
{
echo do_shortcode('[woosw_list]');
}
add_action('woocommerce_account_wish-list_endpoint', 'show_wish_list');
function renew_my_account_links($menu_links)
{
$menu_links['wish-list'] = __('Мои желания');
return $menu_links;
}
add_filter('woocommerce_account_menu_items', 'renew_my_account_links');
Answer the question
In order to leave comments, you need to log in
And why should? This is C, not C++, not Perl, where the wildest constructs exist. Everything here is as simple as a piece of wood :)
char domen[100];
char stroka = "В чащах юга жил бы цитрус";
strcpy(domen, stroka);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question