Skip to content

Latest commit

 

History

History
76 lines (63 loc) · 2.62 KB

general.md

File metadata and controls

76 lines (63 loc) · 2.62 KB

application.general

Set application general options.

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,
    ],
];

Example;

<?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',
    ],
];

Note;

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().

Further Reading;

Bug?