WP Manifestindependent plugin directory
manifest / users / 000-role-display

000 User Roles and Capabilities Display

Muestra una lista de roles de usuario y sus capacidades activas en WordPress mediante un shortcode [display_user_roles].

by Juan Luis Martel · github.com/usblsb/000-role-display · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/usblsb/000-role-display/archive/refs/heads/main.zip

Display User Roles and Capabilities Plugin

This is a WordPress plugin that provides functionality to display user roles and their capabilities. It also adds a help link to the plugin page.

Functions

The plugin contains two main functions:

  1. jlmr_agregar_enlace_ayuda_display_user_roles_and_capabilities($links, $file): This function adds a help link to the plugin page. It first checks if we are in the correct plugin before adding the link. The help link URL is constructed and added to the array of links. The function returns the updated links array.

  2. jlmr_display_user_roles_and_capabilities(): This function is used to display user roles and their capabilities. It starts an output buffer and retrieves all user roles.

Usage

To use this plugin, simply install it in your WordPress site and activate it. The user roles and their capabilities will be displayed, and a help link will be added to the plugin page.

Note

This plugin is still under development. More features will be added in the future.

Contribution

Contributions are welcome. Please make sure to read the contributing guide before making a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.