Add active class to the menu li in wordpress

By default, there is a .current-menu-item class added in the menu li.

we can easily add the active class by simple WordPress filter.

That’s it..!!!!

Read: WordPress Interview Questions and Answers