Managing Roles and Capabilities for Your Sports WordPress Site

SportsPress adds new roles and capabilities to WordPress so you control what your users can do. Want to enlist some help managing your website? Done! Want to give coaches the option to edit their profiles? Done! You can adjust just how much access to give everyone.

A user role in WordPress is a type of account that has certain permissions attached to it. An admin user role, for example, has access to everything on a website, while a subscriber has very limited access. WordPress capabilities are the specific set of actions that are applied to user roles.

For your sports site, you can have access to everything as an admin, but you can also adjust other users’ roles based on what you need them to be able to do within your site. That way, you can give access where its needed to certain members, but not everyone.

With SportsPress, you have the option to manually create accounts and set each individual user’s role on your sports website. You can also enable account registrations and set a role for users to automatically take on when they create an account. You can also edit each role to include a custom set of permissions.

Here are more details on WordPress and SportsPress roles and capabilities, why they’re useful, how to manually or automatically set a user role and how to customize SportsPress roles with different capabilities with code.

WordPress Roles and Capabilities

In WordPress, capabilities are actions that can be applied to a website. Capabilities include the ability to edit posts, create pages or categories, and manage parts of the website such as plugins, themes and other users. But they don’t stop there. There’s a capability for just about anything you want to do in WordPress.

Capabilities are also coded into the WordPress platform and are assigned to user roles, which are different account levels. Each role has certain capabilities attached to it based on the level of access needed to the WordPress website.

For example, the administrator user role is meant for the person who is set to manage an entire single installation. Typically, this is the owner or developer who created the site. The admin role has the highest number of assigned capabilities and has access to everything on a WordPress site.

The only exception is if the Multisite feature is enabled and multiple websites can be created using one WordPress installation. In this case, the user role with the most assigned capabilities is the super admin. This user role has access to everything on each site in the network.

An editor is the user role with the second highest amount of assigned capabilities. An account with this user role can edit posts other users or themselves make, but access isn’t granted to everything.

Skipping down to the last user role is a subscriber which only has capabilities to manage the account’s own profile.

For details, check out Roles and Capabilities in the WordPress Codex.

What’s Roles and Capabilities Got to Do with It?

Roles and capabilities help control what user access in order to prevent unwanted changes from being applied to a website. At the same time, users who need access to manage certain parts of the site can do so freely.

As previously mentioned, there are new roles and capabilities available after installing SportsPress. They’re different than the default ones for WordPress.

SportsPress Roles and Capabilities

These new SportesPress roles and capabilities are created to help you better manage your sports WordPress website:

  • Leaugue Manager – Similar to the WordPress admin, this user role has access to everything.
  • Team Manager – This user role can publish, edit and delete players, staff, events, player lists, and posts. Users can also edit or submit assigned teams for review.
  • Event Manager – Users with this role can publish, edit and delete events. They can also edit or submit assigned players, staff, teams, and post for review.
  • Staff – Staff members can edit or submit assigned staff, events, teams and posts for review.
  • Player – Players can edit or submit assigned players, events, teams and posts for review.

To better illustrate what each SportsPress user role has access to, check out the table below.

League Manager Team Manager Event Manager Staff Player
Calendars Full access
Leaugue Tables Full access
Sponsors Full access Edit and submit what’s assigned for review
Staff Directories Full access Full access
Player Lists Full access Full access
Staff Full access Full access Edit and submit what’s assigned for review Edit and submit what’s assigned for review
Teams Full access Edit and submit what’s assigned for review Edit and submit what’s assigned for review Edit and submit what’s assigned for review Edit and submit what’s assigned for review
Players Full access Full access Edit and submit what’s assigned for review Edit and submit what’s assigned for review Edit and submit what’s assigned for review
Events Full access Full access Full access Edit and submit what’s assigned for review Edit and submit what’s assigned for review

For details on SportsPress roles and capabilities, check out the plugin’s Summary of Roles and List of Capabilities documentation pages.

Before Getting Started

It’s best practice to create a full backup of your WordPress website before making any changes. That way, if something goes wrong with the adjustments you made, you can roll back to the previous, unaffected version of your site.

This is especially true if you plan to customize the SportsPress user roles, which is covered later on.

It’s also important to consider who exactly you’re entrusting to certain user roles you set for them as the admin. It’s important you only give access to those you trust since they can change certain aspects of your sports website.

It’s best to give only the access that’s necessary for a user to complete necessary tasks rather than having them have access to everything. This prevents hackers from being able to also have access to most or all of your site if they’re able to hack into one of your site’s user accounts.

When you’re ready, you can go ahead, and install and activate SportsPress. If you prefer to have access to all of SportsPress’s features, you can install SportsPress Pro instead.

Once that’s done, set up the plugin manually or by using the installation wizard. You can check out How to Build a Baseball Website with WordPress and SportsPress and Making a Slam-Dunk Tournament WordPress Site with SportsPress Pro for details.

Manually Creating a User and Setting a Role

You can manually set a user role for an account once you create it. You can also set a user role to be automatically assigned to new account sign-ups. This is covered later on.

Creating an Account

To create a new user account, go to your admin dashboard > Users > Add New.

Stay in the loop

Enjoy this article? Get more content like this directly in your inbox.

Take your club to the next level

Already have a theme? SportsPress Pro adds advanced sports features to any WordPress site, and works perfectly together with any of our themes.