LLMS_Rest_Admin_Settings_Page::__construct()

Constructor


Source Source

File: libraries/lifterlms-rest/includes/admin/class-llms-rest-admin-settings-page.php

	public function __construct() {

		require_once 'class-llms-rest-admin-settings-api-keys.php';
		require_once 'class-llms-rest-admin-settings-webhooks.php';

		$this->id    = 'rest-api';
		$this->label = __( 'REST API', 'lifterlms' );

		// Output Stuff.
		add_filter( 'lifterlms_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
		add_action( 'lifterlms_sections_' . $this->id, array( $this, 'output_sections_nav' ) );
		add_action( 'lifterlms_settings_' . $this->id, array( $this, 'output' ) );

		// Maybe Save API Keys.
		add_action( 'lifterlms_settings_save_' . $this->id, array( 'LLMS_Rest_Admin_Settings_API_Keys', 'save' ) );

		// Disable the default page's save button.
		add_filter( 'llms_settings_rest-api_has_save_button', '__return_false' );

		add_filter( 'llms_table_get_table_classes', array( $this, 'get_table_classes' ), 10, 2 );
		add_action( 'lifterlms_admin_field_title-with-html', array( $this, 'output_title_field' ), 10 );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.