WPIntell

Source evidence

Adding more $supported_roles

Use Administrator Password · support · 2015-12-02T20:34:00+00:00

mixedsentiment
lowseverity
0.62relevance
2replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
eggplantstudios resolved
Hey, You have a private variable $supported_roles, where you list out the roles this plugin works for. But it isn’t filterable. Adding/removing roles from this list is impossible without editing your plugin files. Can you please add a filter in the get_supported_roles() function so your users can add additional roles, or could you use the $wp_roles global to programmatically add ALL defined roles into the $supported_roles array? ty https://wordpress.org/plugins/use-administrator-password/ A filter has been added in 1.2.1. programmatically add ALL defined roles There’s a comment in the source code explaining why that’s not done. The plugin’s core feature – of allowing you to log into a lower ranked role’s account – requires that roles are ranked. There’s no fail-safe way to rank arbitrary roles which aren’t part of stock WP. David Thanks david <3 I totally understand about auto-adding roles, the filter will be great for us. Tx

Comments

2 shown
David Anderson / Team Updraft 2015-12-07T23:11:00+00:00

A filter has been added in 1.2.1. programmatically add ALL defined roles There’s a comment in the source code explaining why that’s not done. The plugin’s core feature – of allowing you to log into a lower ranked role’s account – requires that roles are ranked. There’s no fail-safe way to rank arbitrary roles which aren’t part of stock WP. David

eggplantstudios 2015-12-07T23:17:00+00:00

Thanks david <3 I totally understand about auto-adding roles, the filter will be great for us. Tx