Download the PHP package innocode-digital/wp-innocode-community without Composer
On this page you can find all versions of the php package innocode-digital/wp-innocode-community. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download innocode-digital/wp-innocode-community
More information about innocode-digital/wp-innocode-community
Files in innocode-digital/wp-innocode-community
Package wp-innocode-community
Short Description Helps to integrate Innocode Community with a site.
License GPL-2.0+
Informations about the package wp-innocode-community
Community
Description
Helps to integrate Innocode Community with a site.
Install
-
Preferable way is to use Composer:
`
By default it will be installed as Must Use Plugin. But it's possible to control with
extra.installer-paths
incomposer.json
. -
Alternate way is to clone this repo to
wp-content/mu-plugins/
orwp-content/plugins/
:`
If plugin was installed as regular plugin then activate Community from Plugins page
or WP-CLI: wp plugin activate wp-innocode-community
.
Usage
Add required constants (usually to wp-config.php
):
`
Documentation
Get Innocode Community API object:
`
Note: it will trigger an error in case when required constants
INNOCODE_COMMUNITY_INSTANCE_URL
and/or INNOCODE_COMMUNITY_CONSUMER_TOKEN
are missing.
Get a feed:
`
$id
- Feed ID.$query_args
- Query arguments.$args
- Request arguments. See WP_Http::request() for more info.
Perform an HTTP request to the API:
`
$method
- Request method. AcceptsGET
,POST
,HEAD
,PUT
,DELETE
,TRACE
,OPTIONS
, orPATCH
.$path
- Endpoint path.$query_args
- Query arguments.$args
- Request arguments. See WP_Http::request() for more details.
REST API
HTTP method | Endpoint | Function |
---|---|---|
GET | /innocode/v1/community/feeds/<id> |
Retrieves a feed from Community through API. |
Request Parameters
Name | Type | Description |
---|---|---|
id | int | Feed ID. Required |