Including login link on main navigation
-
Hi there,
I inherited a site running an old version of TML (6.2.3) which included a ‘login’ link within the main menu achieved via inclusion of ‘[theme-my-login]’ on a page named ‘login’.
In light of the latest security fixes I have updated to the current TML version but have now lost the ‘login’ link.
I found an old support entry relating to use of ‘remove_filter’ (https://www.jfarthing.com/support/forums/topic/include-tml-pages-in-wp_list_pages/) and based on this information updated line 151 of the current version of \includes\class-theme-my-login.php by changing ‘add_filter’ to ‘remove_filter’ – i.e. ‘remove_filter( ‘wp_list_pages_excludes’, array( &$this, ‘wp_list_pages_excludes’ ) ); ‘
This restores the link in the main menu but are there any risks with this approach and would it still be the preferred way of achieving the login/logout link within the navigation?
I see the documentation suggests simply checking ‘show in pagelist’ (https://www.jfarthing.com/development/theme-my-login/general/) but I don’t see this option within the current TML settings plus the inherited site is making use of ‘exclude pages’ plugin which may be a factor.
Thanks in advance.
N
- The topic ‘Including login link on main navigation’ is closed to new replies.