APIAPI_Config::get_defaults()

Returns the default parameters with their values.

Description

See also

Return

(array) Associative array of default config parameters with their values.

Source

File: src/apiapi-config.php

	protected function get_defaults() {
		return array(
			'transporter'            => 'wordpress',
			'config_updater'         => true,
			'config_updater_storage' => 'wordpress-option',
			'config_updater_args'    => array(
				'listener_query_var' => 'structure',
				'auth_basename'      => $this->prefix . 'apiapi_auth',
				'callback_base_url'  => add_query_arg( 'action', $this->prefix . 'apiapi_callback', admin_url( 'admin.php' ) ),
				'setup_config_hook'  => 'setup_config',
				'listener_hook'      => 'listen_for_callback',
			),
		);
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.