I want to use Advanced Text Widget and provide links
You can use following php commands to provide links to plugin's actions manually:
- simple_ajax_auth_login_link()
- simple_ajax_auth_register_link()
- simple_ajax_auth_admin_link()
- simple_ajax_auth_logout_link()
These will only return content when needed, for example, simple_ajax_auth_logout_link()
won't return anything, if user is not logged in. Registration link won't show when user
has logged in and/or site's user registration has been disabled.
To display one of these, do the following:
echo simple_ajax_auth_login_link();
You may also use $before and $after, like this:
echo simple_ajax_auth_login_link('', '');
If user has not logged in this would output link in middle of and tags. If link
won't be returned, it's still empty, even when $before and $after are used.