Download the PHP package drcsystems/display-third-party-users without Composer
On this page you can find all versions of the php package drcsystems/display-third-party-users. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drcsystems/display-third-party-users
More information about drcsystems/display-third-party-users
Files in drcsystems/display-third-party-users
Package display-third-party-users
Short Description A simple wordpress plugin to display users in table on custom endpoint from third party API
License GPL-2.0+
Homepage https://www.drcsystems.com/
Informations about the package display-third-party-users
Drc Systems Display Third Party Users
A simple wordpress plugin to display users in table on custom endpoint from third party API.
Installation
Plugin Installation
The plugin can be installed via Composer by the name drcsystems/display-third-party-users
.
It means they can be installed by adding the entry to composer.json require-dev
:
or via command line with: (From your wordpress root)
Plugin Requirements
- Php 5.6 or later
- Wordpress 5 or later
(The default target version is PHP 7.0+ and Wordpress 5.7)
Usage
Basic usage
When the plugin is installed via Composer, and dependencies are updated, everything is ready and you can view the plugin in wp-admin under plugin where you need to activate it.
There are options that can be used to customise which can be found under Settings->Third Party Users in wp-admin
Configuration
After activating the plugin go to Settings->Third Party Users in wp-admin and change the Endpoint Slug
if you want other wise the default value will be used.
Following API is used as default to display users:
(You can change the API but make sure your API has the same response structure as the default API)
Visit the page with your Endpoint Slug
to view the data in table
Customization
You can display more columns in the table using this filter hook:
For e.g.,
Phpunit Testing
Go to your plugin dir, run this command:
Replace “root” with the username of your database and replace ” with the database password. Also replace “localhost” with the hostname of your database. You can find all three of these values in your wp-config.php file.
You can now type phpunit
OR lib/bin/phpunit
into the command line and the unit tests will run
Phpunit Testing Refrence
- https://pippinsplugins.com/unit-tests-wordpress-plugins-setting-up-testing-suite/
- https://gist.github.com/dotherightthing/c8dede3241909e931e62deaf3acf7b8b