Premium_Integrations::register_settings()

Registers the Settings page


Source

File: src/core/lib/settings/trait-premium-integrations.php

	public function register_settings() {
		// Check if the required data is defined
		if ( empty( $this->get_id() || empty( $this->get_name() ) ) ) {
			throw new Exception( 'Premium Integration: Define the ID and name of the integration' );
		}

		// Add the tab using the filter
		$this->add_tab();

		// Register the options/settings
		$this->add_wordpress_settings();

		// Enqueue the assets
		$this->enqueue_assets();
	}