Menu
Hi,
I have this PHP code:
[CODE]<li class=”account-item has-icon
<?php if(is_account_page()) echo ‘ active’; ?>
<?php if ( is_user_logged_in() ) { ?> has-dropdown<?php } ?>”
>
and it returns this:
[CODE]<li class=”account-item has-icon has-dropdown”>
I want to remove “has-dropdown” class with may be preg_replace() function. How can I do that?
Thank you.