2. Getting Started - thinkshout/wp-otis GitHub Wiki

Requirements

See Requirements.

Installation steps

1. Install the plugin

The plugin can be installed manually by downloading an archive from Github to be extracted and placed in WP's plugins directory, or via Composer with a command similar to this:

composer require thinkshout/wp-otis "^1.2"

2. Configure data filters

WP-OTIS is configured via WordPress hooks that can be placed in a custom plugin or a theme. When the plugin was initially developed, credentials were configured like so (and still can be):

/*
* Set REST Auth params for OTIS API.
 */
add_filter( 'wp_otis_rest_auth', function ( $params ) {
	$params['username'] = ‘USERNAME GOES HERE';
	$params['password'] = ‘PASSWORD GOES HERE';
	return $params;
 } );

With version update 1.2.5, credentials (for OTIS account) can also be configured through the WP Admin via the Settings tab in the WP OTIS Dashboard.

You may also want to configure filters for OTIS data, such as by region or type. See 3. Filters & Parameters.

3. Activate WP-OTIS and run an initial import

To trigger the initial import of POIs, run this command:

wp otis import

There are other WP-OTIS CLI commands as well.