This plugin is specially made for people who wants to put some condition according to user logged or guest position , I mean not logged in position. I hope you can easily change aacondition.php file condition and can use the plugin with shortcode and here is the shortcode for you [aa_condition_button]. Very simple to use.
Features
- Conditional Buttons via Shortcode
Display customizable buttons based on user login status using
[aa_condition_button]
.
- User Login-Aware Display
Show different buttons and messages depending on whether the visitor is logged in or not.
- Customizable Button Labels and URLs
Easily configure button text and link URLs via shortcode attributes or admin panel.
- Shortcode Generator in Admin Panel
Lightweight, single-page admin interface to generate shortcode with your custom options — no coding required.
- Multilingual & Translation Ready
Fully compatible with WordPress internationalization standards (
.pot
files included) for easy localization.
- Open Links in Same or New Tab
Choose whether buttons open links in the current window or a new tab.
- Custom CSS Class for Buttons
Add custom CSS classes to style buttons to fit your theme.
- Login/Register Prompt for Guests
Show customizable, styled login and registration links when users are not logged in.
- Security: Nonce Protection on Admin Form
Protects against cross-site request forgery (CSRF) on admin settings.
- Premium Features (Coming Soon / Optional License Required):
- Enable/disable individual buttons easily.
- Customize login and registration URLs.
- Hide or show login prompts dynamically.
- Additional button styles and templates.
- Priority support and updates.
- Lightweight & Fast
No bloat—small codebase designed for speed and minimal performance impact.
How to use it
- Place the shortcode
[aa_condition_button]
in any post, page, or widget where you want the buttons to appear.
- Use shortcode attributes to customize buttons, for example:
[aa_condition_button show_get_help="yes" get_help_url="https://yourhelpurl.com" get_help_label="Help Now" show_give_back="no"]
- Configure premium options (if enabled) in the plugin admin panel for more control over URLs and messages.
- Customize button styles via your theme or add custom CSS classes using shortcode attributes.
- Make sure your site supports translations for multilingual users, or provide translations for your language.