backend_schedule_settings

Allows adding custom content to personal calendar settings.

Team

Input (passed by reference)

$params['current_user'] waContact Contact of the user for whom the calendar settings dialog is opened.
… your plugin code …

Output

{$backend_schedule_settings.%plugin_id%.top}
Custom content at the top of the dialog.
{$backend_schedule_settings.%plugin_id%.li}
Contents of an additional <li> element in the list of available calendars.
{$backend_schedule_settings.%plugin_id%.bottom}
Custom content at the bottom of the dialog.
Team

Plugin code example

PHP

public function backendScheduleSettings($params)
{
    $current_user = $params['current_user'];

    return [
        'top' => '<div>Custom content at the top</div>',
        'li' => '<a class="" href=""><i class="icon16 user"></i>' . _wp('Custom calendar') . '</a>',
        'bottom' => '<div>Custom content at the bottom</div>',
    ];
}