1. Home
  2. Docs
  3. Listar FluxPro
  4. Backend Installation
  5. WordPress Plugins

WordPress Plugins

WordPress plugins are software components that can be easily added to your WordPress site to add or extend its functionality. With plugins, you can manage your listing data and much more. WordPress plugin is software that “plugs into” your WordPress site. Plugins can add or extend your site’s functionality, allowing you to manage your listing data.

1. Listar – Directory Listing & Classifieds WordPress Plugin

The PassionUI Team has developed a free plugin that enables you to manage your directory listing through the WordPress backend. This plugin is designed to work with REST APIs for mobile apps and doesn’t require any additional purchases. Please note that the plugin is intended for use on the backend only.

Manual Installation

You can download Listar – Directory Listing & Classifieds WordPress Plugin directly from WordPress Plugin official page, then do the steps below

  1. Extract the zip file and drop the contents in the wp-content/plugins/ directory of your WordPress installation
  2. Activate ‘Listar – Directory Listing & Classifieds WordPress Plugin’ through the ‘Plugins’ menu in WordPress.
xxx
Listar – Directory Listing & Classifieds manual installation

Direct Download & Installation

  1. Plugins → Add a New → Search for Listar – Directory Listing & Classifieds WordPress Plugin
  2. Click Install Now
Listar – Directory Listing & Classifieds direct download

Check Your Result

After you install Listar – Directory Listing & Classifieds WordPress Plugin, ensure it works fine. Please access the URL following the format {domain}/index.php/wp-json/listar/v1

Example: https://demo.listarapp.com/index.php/wp-json/listar/v1

If your result like the image below, it’s means you installed it successfully, and your mobile can work fine with REST APIs

Listar API check result

2. JWT Authentication for WP-API

This plugin supports Authentication. You can download JWT Authentication for WP-API directly from WordPress Plugin’s official page, then do the steps below

Manual Installation

  1. Extract the zip file and drop the contents in the wp-content/plugins/ directory of your WordPress installation
  2. Activate ‘JWT Authentication for WP-API’ through WordPress’s ‘Plugins’ menu.
JWT Authentication for WP-API manual installation

Direct Download & Installation

  1. Plugins → Add a New → Search for JWT Authentication for WP-API
  2. Click Install Now
JWT Authentication for WP-API direct download

Configure HTTP Authorization Header

Most servers have disabled the HTTP Authorization Header by default. To enable HTTP Authorization Header

You can find your .htaccess by directory {your-wordpress-source-code-path}/.htaccess, then edit your file .htaccess with the format below

RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

To enable this option, you’ll need to edit your .htaccess file by adding the following

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

After you modify your .htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
RewriteRule . /index.php [L]
</IfModule>
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Configure WordPress wp-config.php

The JWT needs a secret key to sign the token, this secret key must be unique and never revealed.

To add the secret key edit your wp-config.php file and add a new constant called JWT_AUTH_SECRET_KEY

define('JWT_AUTH_SECRET_KEY', 'you-secret-key');

Check Your Result

After you have installed JWT Authentication for WP-API plugin for make sure it’s working fine. Please use your web browser to access the URL following the format {domain}/index.php/wp-json

Example: https://demo.listarapp.com/index.php/wp-json

If your result like the image below, it’s means you installed it successfully and your mobile can work fine with REST APIs

JWT Authentication for WP-API check result