public/wordpress/wp-content/plugins/wp-courseware/includes/core/settings.php
/**
	 * Register Settings Api Endpoints.
	 *
	 * @since 4.1.0
	 *
	 * @param array $endpoints The endpoints to filter.
	 * @param Api The api object reference.
	 *
	 * @return array $endpoints The modified array of endpoints.
	 */
Register Settings Api Endpoints.

@param array $endpoints The endpoints to filter.
@param Api The api object reference.

@return array $endpoints The modified array of endpoints.
Register Settings Api Endpoints . @param array $endpoints The endpoints to filter . @param Api The api object reference . @return array $endpoints The modified array of endpoints .
public function register_api_endpoints( $endpoints, Api $api ) {
		$endpoints[] = array( 'endpoint' => 'settings', 'method' => 'GET', 'callback' => array( $this, 'api_get_settings' ) );
		$endpoints[] = array( 'endpoint' => 'settings', 'method' => 'POST', 'callback' => array( $this, 'api_save_settings' ) );
		$endpoints[] = array( 'endpoint' => 'settings-field-create-page', 'method' => 'POST', 'callback' => array( $this, 'api_settings_field_create_page' ) );
		return $endpoints;
	}
public function register_api_endpoints ( $ endpoints , Api $ api ) { $ endpoints [ ] = array ( 'endpoint' => 'settings' , 'method' => 'GET' , 'callback' => array ( $ this , 'api_get_settings' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'settings' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_save_settings' ) ) ; $ endpoints [ ] = array ( 'endpoint' => 'settings-field-create-page' , 'method' => 'POST' , 'callback' => array ( $ this , 'api_settings_field_create_page' ) ) ; return $ endpoints ; }
Register Settings Api Endpoints.
Register Settings Api Endpoints .