Posts

Add login/logout link to WordPress navigation menu using functions.php

WordPress doesn’t have an option to add login or logout links to navigation menu based on user login status. But you can add login/logout link to WordPress navigation menu using funcitons.php. wp_nav_menu_items filter hook helps you to do it from functions.php.
Read more

Dynamically populate woocommerce product category terms to WordPress navigation menu

Following is a snippet that lets you dynamically populate woocommerce product category terms to WordPress navigation menu. This code only add sub product category to wordpress navigation menu if the woocommerce parent category already exists in wordpress navigation menu.
Read more