The specific items could be completely removed from the menu after checking for appropriate conditions through the ‘wp_nav_menu_objects’ filter.
]]>Your jQuery could possibly get their login form, “fill it out” (so to speak) and submit it. It’s an inherently weak approach, as login forms can change without notice. If the ixl site supports some sort of single sign on scheme like through Google or Facebook, there are similar plugins for WP. The user would still need to authorize each login, but it’s a lot easier than laboriously filling out login forms every time.
]]>How could I get their login form? could you please provide me with a code example?
and also could you please tell me where to put this code in WordPress?.
The code requests the login form and stores the returned content in a variable. Using string manipulation functions, the necessary data is extracted which would be needed to submit a login request, such as field names and security nonce values. POSTing all the necessary data should result in a successful login.
Sorry, I don’t have example code I could provide. FWIW, the technique is essentially what some black hat apps do to guess passwords and gain unauthorized, privileged access to sites. The difference being your app would be authorized and would have the correct credentials.
]]>