src/class-options-page.php
public function admin_init() {
		add_settings_section(
			'soter_general',
			'General Settings',
			[ $this, 'render_section_general' ],
			'soter'
		);

		add_settings_section(
			'soter_email',
			'Email Settings',
			[ $this, 'render_section_email' ],
			'soter'
		);

		add_settings_section(
			'soter_slack',
			'Slack Settings',
			[ $this, 'render_section_slack' ],
			'soter'
		);

		add_settings_field(
			'soter_should_nag',
			'Notification Frequency',
			[ $this, 'render_should_nag' ],
			'soter',
			'soter_general'
		);

		add_settings_field(
			'soter_ignored_plugins',
			'Ignored Plugins',
			[ $this, 'render_ignored_plugins' ],
			'soter',
			'soter_general'
		);

		add_settings_field(
			'soter_ignored_themes',
			'Ignored Themes',
			[ $this, 'render_ignored_themes' ],
			'soter',
			'soter_general'
		);

		add_settings_field(
			'soter_email_enabled',
			'Send Email Notifications',
			[ $this, 'render_email_enabled' ],
			'soter',
			'soter_email'
		);

		add_settings_field(
			'soter_email_address',
			'Email Address',
			[ $this, 'render_email_address' ],
			'soter',
			'soter_email'
		);

		add_settings_field(
			'soter_email_type',
			'Email Type',
			[ $this, 'render_email_type' ],
			'soter',
			'soter_email'
		);

		add_settings_field(
			'soter_slack_enabled',
			'Send Slack Notifications',
			[ $this, 'render_slack_enabled' ],
			'soter',
			'soter_slack'
		);

		add_settings_field(
			'soter_slack_url',
			'WebHook URL',
			[ $this, 'render_slack_url' ],
			'soter',
			'soter_slack'
		);
	}
public function admin_init() {
		add_settings_section(
			'soter_general',
			'General Settings',
			[ $this, 'render_section_general' ],
			'soter'
		);

		add_settings_section(
			'soter_email',
			'Email Settings',
			[ $this, 'render_section_email' ],
			'soter'
		);

		add_settings_section(
			'soter_slack',
			'Slack Settings',
			[ $this, 'render_section_slack' ],
			'soter'
		);

		add_settings_field(
			'soter_should_nag',
			'Notification Frequency',
			[ $this, 'render_should_nag' ],
			'soter',
			'soter_general'
		);

		add_settings_field(
			'soter_ignored_plugins',
			'Ignored Plugins',
			[ $this, 'render_ignored_plugins' ],
			'soter',
			'soter_general'
		);

		add_settings_field(
			'soter_ignored_themes',
			'Ignored Themes',
			[ $this, 'render_ignored_themes' ],
			'soter',
			'soter_general'
		);

		add_settings_field(
			'soter_email_enabled',
			'Send Email Notifications',
			[ $this, 'render_email_enabled' ],
			'soter',
			'soter_email'
		);

		add_settings_field(
			'soter_email_address',
			'Email Address',
			[ $this, 'render_email_address' ],
			'soter',
			'soter_email'
		);

		add_settings_field(
			'soter_email_type',
			'Email Type',
			[ $this, 'render_email_type' ],
			'soter',
			'soter_email'
		);

		add_settings_field(
			'soter_slack_enabled',
			'Send Slack Notifications',
			[ $this, 'render_slack_enabled' ],
			'soter',
			'soter_slack'
		);

		add_settings_field(
			'soter_slack_url',
			'WebHook URL',
			[ $this, 'render_slack_url' ],
			'soter',
			'soter_slack'
		);
	}
public function admin_init ( ) { add_settings_section ( 'soter_general' , 'General Settings' , [ $ this , 'render_section_general' ] , 'soter' ) ; add_settings_section ( 'soter_email' , 'Email Settings' , [ $ this , 'render_section_email' ] , 'soter' ) ; add_settings_section ( 'soter_slack' , 'Slack Settings' , [ $ this , 'render_section_slack' ] , 'soter' ) ; add_settings_field ( 'soter_should_nag' , 'Notification Frequency' , [ $ this , 'render_should_nag' ] , 'soter' , 'soter_general' ) ; add_settings_field ( 'soter_ignored_plugins' , 'Ignored Plugins' , [ $ this , 'render_ignored_plugins' ] , 'soter' , 'soter_general' ) ; add_settings_field ( 'soter_ignored_themes' , 'Ignored Themes' , [ $ this , 'render_ignored_themes' ] , 'soter' , 'soter_general' ) ; add_settings_field ( 'soter_email_enabled' , 'Send Email Notifications' , [ $ this , 'render_email_enabled' ] , 'soter' , 'soter_email' ) ; add_settings_field ( 'soter_email_address' , 'Email Address' , [ $ this , 'render_email_address' ] , 'soter' , 'soter_email' ) ; add_settings_field ( 'soter_email_type' , 'Email Type' , [ $ this , 'render_email_type' ] , 'soter' , 'soter_email' ) ; add_settings_field ( 'soter_slack_enabled' , 'Send Slack Notifications' , [ $ this , 'render_slack_enabled' ] , 'soter' , 'soter_slack' ) ; add_settings_field ( 'soter_slack_url' , 'WebHook URL' , [ $ this , 'render_slack_url' ] , 'soter' , 'soter_slack' ) ; }
Registers settings, sections and fields.

@return void
Registers settings sections and fields .