Appointments Booking User Calendar - Admin - Creating and Assigning User Calendars
Creating and Assigning User Calendars
What Is It
Each user receives his/her own User Calendar page, which includes only the calendar. The calendars can be created automatically or manually.
Automatic Creation of the User Calendar Page
User calendar page is created automatically. It contains only the shortcode
The pages are created following this structure:
And any user calendar can be accessed by adding to the URL calendar owner's username.
So, for instance, for the site www.site.com and user john, to access john's calendar the URL will be:
You can create your own user calendar page using the shortcode
[cm_event_booking_calendar_user_calendar]. When the page is created, navigate to Admin Dashboard → CM Appointments Booking Pro → Options → User Calendar tab, and choose this page in the option Calendar page.
Creating Missing Calendars for Users
Missing User Calendars can be created in bulk in a few ways:
- Automatically for all users
- Automatically for users by certain user role only
- Manually for all users or by certain user role only
The admin can also create each calendar manually and assign this calendar to needed user (maximum one calendar per each user).
Let's consider all these methods more detailed.
Creating Calendars in Bulk
Navigate to Admin Dashboard → CM Appointments Booking Pro → Options.
Head to the User Calendar tab. In the option Who is allowed to see calendars? you can choose, for whom you will create calendars. For creating calendars you need to choose either All or Only selected roles.
When you choose Only selected roles, there appears a list of available user roles, so you just need to check needed ones.
Then scroll down to the bottom of the page and click Save Changes.
Now, to create missing calendars for all users or for all users by certain role only, you need to click the button Create in the section Create missing calendars for new users right now.
You will see the report about what calendars were created. Note: the calendar will not be created for the user, if he already has a calendar assigned to him.
You can find created calendars on the Calendars page under the plugin menu.
Creating Calendars for New Registered Users
Above the option for creating missing calendars you can find another option - Create calendars for new registered users?. You can choose:
- Yes - There will be automatically created a new calendar for each new user that has just registered (depends on your choice: for all users or only for chosen user roles).
- No - New calendars won't be created automatically for new registered users.
Note: this option was introduced in version 1.1.0.
Creating Calendars Individually
You can also create a calendar manually as usual and then assign this calendar to needed user. It can also be done while editing existing calendar. Learn more about Creating/Editing calendars. To do this, find the option Calendar owner and choose needed user in the dropdown.
This dropdown also has an option Common Calendar - it is chosen for calendars that don't have any owners and can't be managed from the front-end. These calendars are regular and can be managed only by admins. Note: this option was introduced in version 1.1.0.
Important: each user can own one calendar maximum. It means, if some calendar is already assigned to the user and you assign another calendar to this user, then the first calendar will be unassigned from this user. In the dropdown Calendar Owner of that calendar will be chosen Common Calendar as owner.
And don't forget to click an Update button to save the changes, when you edit calendars.