two-factor icon indicating copy to clipboard operation
two-factor copied to clipboard

Adds action links to the plugin list table

Open iqbal-web opened this issue 2 months ago • 3 comments

Is your enhancement related to a problem? Please describe.

The plugin was missing the action link for “Settings” on the Plugins page in the WordPress admin. Because this link was not present, users had no direct way to navigate to the plugin’s settings page from the plugin list table, which reduces usability and is inconsistent with standard WordPress plugin behavior.

Proposed Solution

Add a plugin_action_links() function that injects a Settings link into the plugin’s action links. This ensures users can quickly access the plugin settings from the Plugins screen.

Designs

Image

Describe alternatives you've considered

No response

Please confirm that you have searched existing issues in this repository.

Yes

iqbal-web avatar Dec 10 '25 18:12 iqbal-web

There are currently no settings for the plugin as a whole. We only have two factor settings for individual users that are added to their profile page in the admin.

I wonder if it would be confusing for admins to have their profile linked as the settings page? Would users understand that these are profile-level settings and nothing they are enabling for everyone?

kasparsd avatar Dec 10 '25 18:12 kasparsd

@kasparsd When I first installed this plugin, I wasn’t sure how to enable two-factor authentication. After looking at the screenshot, I understood how to set it up.

I also noticed the blueprint includes a landing URL, so administrators can visit that link anytime if they need to enable it. Because of that, I don’t think admins will get confused.

Image

iqbal-web avatar Dec 10 '25 18:12 iqbal-web

Thanks for confirming. Let's add it in and then adjust as needed. I also hope that we can merge #701 soon as that contains a bunch of documentation updates.

kasparsd avatar Dec 10 '25 18:12 kasparsd

Added 'Settings' action link to plugin list for quick access to profile.

hardikRathi avatar Dec 12 '25 08:12 hardikRathi

Fixed in #740.

kasparsd avatar Dec 12 '25 09:12 kasparsd