Set application general options.
<?php
return [
'application.general' => [
'site-title' => (string) $title,
'tagline' => (string) $tagline,
'wp-address' => (string) $wp_url,
'site-address' => (string) $site_url,
'admin-email' => (string) $admin_email,
'admin-email.verification' => (boolean|int) $verification,
'email-from' => (string) $email_from,
'email-from-name' => (string) $email_from_name,
'membership' => (boolean) $enable_membership,
'default-role' => (string) $role,
'language' => (string) $language,
'timezone' => (string) $timezone,
'date-format' => (string) $date_format,
'time-format' => (string) $time_format,
'week-starts' => (string) $week_starts,
],
];
<?php
return [
'application.general' => [
'site-title' => 'example',
'tagline' => 'Intervention Example',
'wp-address' => 'https://example.com/wp',
'site-address' => 'https://example.com',
'admin-email' => 'example@example.com',
'admin-email.verification' => 6 * MONTH_IN_SECONDS,
'email-from' => 'app@example.com'
'email-from-name' => 'example'
'membership' => true,
'default-role' => 'editor',
'language' => 'en_US',
'timezone' => 'Africa/Johannesburg',
'date-format' => 'F j Y',
'time-format' => 'g:i a',
'week-starts' => 'Mon',
],
];
The language must be installed and available in order for 'language' => (string) $language
to work. You can see if the language is available using get_available_languages().
- Option Reference
general.timezone
general.date-format
general.time-format
general.week-starts