Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2025-03-04 (Yesterday) ![]() | Not yet rated by the users | Total: Not yet counted | Not yet ranked |
Version | License | PHP version | Categories | |||
cool-kids-network-fo 1.0 | The PHP License | 5 | PHP 5, User Management, Blogs |
Description | Author | |
This package provides a WordPress plugin to manage users with roles. |
The Cool Kids Network WordPress plugin aims to enhance user interaction by providing a seamless signup and login experience, managing user roles, and displaying character details. The plugin needs to handle user authentication securely, manage user roles effectively, and integrate with third-party services to enrich user profiles.
The plugin is structured around a core admin class, Admin_Core
, which extends a base class. It leverages WordPress hooks and actions to integrate functionalities such as AJAX handling, REST API routes, and shortcodes. The plugin also interacts with external APIs to fetch user data and enrich user profiles.
AJAX Handlers:
- `handle_signup`: Manages user registration, verifies nonce, checks email validity, and interacts with an external API to generate user data. - `handle_login`: Handles user login, verifies nonce, and sets authentication cookies.
REST API Endpoints:
- `/auth/nonce`: Provides a nonce for secure API interactions.
- Sample Request: ```http GET /wp-json/wp_ckn_v1/auth/nonce ``` - Sample Response: ```json { "nonce": "1234567890abcdef" } ```
- `/user/role`: Allows role changes for users, with validation and error handling.
- Sample Request:
```http POST /wp-json/wp_ckn_v1/user/role Content-Type: application/json Authorization: Bearer 1234567890abcdef
{ "role": "cooler_kid", "first_name": "John", "last_name": "Doe", "email": "[email protected]", } ```
- Sample Response: ```json { "success": true, "message": "User role updated successfully." } ```
Shortcodes:
- `[wp_ckn_signup]`: Displays the signup form. - `[wp_ckn_login]`: Displays the login form. - `[wp_ckn_character_details]`: Displays character details.
Security:
- Nonce verification is used extensively to prevent CSRF attacks. - User input is sanitized to prevent XSS and other injection attacks.
User Role Management:
- A predefined set of roles ensures consistency and prevents unauthorized role assignments.
External API Integration:
- The use of `randomuser.me` API enriches user profiles with additional data, enhancing user experience.
The solution effectively meets the admin's requirements by:
This design not only addresses the immediate needs of the admin but also lays a foundation for future enhancements and scalability.
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Aux. | Configuration script | ||
![]() ![]() |
Doc. | Explanation document | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Doc. | Documentation | ||
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | app |
![]() |
/ | app | / | templates |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Example | Example script | ||
![]() ![]() |
Aux. | Configuration script | ||
![]() ![]() |
Aux. | Configuration script |
![]() |
/ | app | / | templates | / | character-details |
File | Role | Description |
---|---|---|
![]() ![]() |
Example | Example script |
![]() ![]() |
Example | Example script |
![]() |
/ | assets | / | css |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | assets | / | js |
File | Role | Description |
---|---|---|
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Aux. | Configuration script |
![]() ![]() |
Data | Auxiliary data |
![]() ![]() |
Data | Auxiliary data |
![]() |
/ | core |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
/ | tests |
File | Role | Description |
---|---|---|
![]() ![]() |
Aux. | Configuration script |
![]() |
Class | Class source |
![]() ![]() |
Aux. | Configuration script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | |||||||
100% |
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.