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.top}
Custom content at the top of the dialog.
{$backend_schedule_settings.li}
Contents of an additional <li> element in the list of available calendars.
{$backend_schedule_settings.bottom}
Custom content at the bottom of the dialog.
Team
Plugin code example
PHP
public function backendScheduleSettings($params)
{
/** @var waContact */
$current_user = $params['current_user'];
return [
'top' => '<div>Custom content at the top</div>',
'li' => '<a href=""><i class="fas fa-user"></i>' . _wp('Custom calendar') . '</a>',
'bottom' => '<div>Custom content at the bottom</div>',
];
}









