function render_options_page() { if (!current_user_can('manage_options')) { wp_die('You do not have sufficient permissions to access Intercom settings'); } $options = get_option('intercom'); $settings_page = new SettingsPage(array("app_id" => $options['app_id'], "secret" => $options['secret'], "enableChat" => isset($options['enableChat']) ? $options['enableChat'] : 'false')); echo $settings_page->htmlUnclosed(); wp_nonce_field('intercom-update'); echo $settings_page->htmlClosed(); }