Skip to content
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Education
    • Photo Directory
    • Five for the Future
    • Events
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

AA Condition Plugin

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in
Image
Image

AA Condition Plugin

By AA Extensions
Download
  • Details
  • Reviews
  • Development
Support

Description

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

  1. Conditional Buttons via Shortcode
    Display customizable buttons based on user login status using `[aa_condition_button]`.
  2. User Login-Aware Display
    Show different buttons and messages depending on whether the visitor is logged in or not.
  3. Customizable Button Labels and URLs
    Easily configure button text and link URLs via shortcode attributes or admin panel.
  4. Shortcode Generator in Admin Panel
    Lightweight, single-page admin interface to generate shortcode with your custom options — no coding required.
  5. Multilingual & Translation Ready
    Fully compatible with WordPress internationalization standards (`.pot` files included) for easy localization.
  6. Open Links in Same or New Tab
    Choose whether buttons open links in the current window or a new tab.
  7. Custom CSS Class for Buttons
    Add custom CSS classes to style buttons to fit your theme.
  8. Login/Register Prompt for Guests
    Show customizable, styled login and registration links when users are not logged in.
  9. Security: Nonce Protection on Admin Form
    Protects against cross-site request forgery (CSRF) on admin settings.
  10. Premium Features (Coming Soon / Optional License Required):
    1. Enable/disable individual buttons easily.
    2. Customize login and registration URLs.
    3. Hide or show login prompts dynamically.
    4. Additional button styles and templates.
    5. Priority support and updates.
  11. Lightweight & Fast
    No bloat—small codebase designed for speed and minimal performance impact.

How to use it

  1. Place the shortcode `[aa_condition_button]` in any post, page, or widget where you want the buttons to appear.
  2. 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”]

  3. Configure premium options (if enabled) in the plugin admin panel for more control over URLs and messages.
  4. Customize button styles via your theme or add custom CSS classes using shortcode attributes.
  5. Make sure your site supports translations for multilingual users, or provide translations for your language.

Installation

  1. Download the Plugin: Download the latest version of the AA Condition plugin ZIP file from the official source or WordPress plugin repository.
  2. Upload the Plugin:
    1. Go to your WordPress Admin Dashboard.
    2. Navigate to Plugins > Add New.
    3. Click on the Upload Plugin button at the top.
    4. Select the downloaded ZIP file and click Install Now.
  3. Activate the Plugin: Once installed, click the Activate Plugin button.
  4. Configure Settings:
    1. Go to Settings > AA Condition in the WordPress dashboard.
    2. Set your preferred options, customize buttons, and generate shortcodes.
  5. Use the Shortcode: Add the shortcode `[aa_condition_button]` to any page, post, or widget to display the conditional buttons.

Screenshots

  1. screenshot-1

Changelog

  1. Version 1.0.1 (2025-06-02)
    1. Added shortcode generator in admin panel with nonce security.
    2. Implemented premium feature toggles and disabled controls for free users.
    3. Improved multilingual support and translation readiness.
    4. Enhanced security with nonce verification on admin form submission.
    5. Fixed display logic to correctly handle logged-in and logged-out users.
    6. Added options for custom button labels, URLs, and CSS classes.
  2. Version 1.0.0 (2025-05-30)
    1. Initial release with basic conditional buttons based on user login status.
    2. Basic shortcode support: [aa_condition_button].
    3. Default button labels and login/register prompt for guests.

Screenshots

  • Image

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AA Condition Plugin” is open source software. The following people have contributed to this plugin.

Contributors
  • Image AA Extensions

Translate “AA Condition Plugin” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Meta

  • Version 1.0.1
  • Last updated 8 months ago
  • Active installations Fewer than 10
  • WordPress version 5.2 or higher
  • Tested up to 6.8.3
  • Tags
    aaextensionsconditonloginshortcode
  • Advanced View

Ratings

No reviews have been submitted yet.

Add my review

See all reviews

Contributors

  • Image AA Extensions

Support

Got something to say? Need help?

View support forum

Donate

Would you like to support the advancement of this plugin?

Donate to this plugin

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry
Advertisement