Falcon 2019 is now deprecated. If you have an existing Falcon 2019 project we are still commited to support you. Please get in touch for more information.
Version: current

Wordpress Module

This Wordpress Module registers required endpoints and filters for DEITY Falcon

Installation

  • Clone DEITY Wordpress to your plugin folder
  • Enable the plugin in your WordPress Admin Panel

Connect Falcon to your WordPress instance

Configure Falcon Server to connect to your Wordpress instance. You can do so by changing your Falcon-Server config.

{
"apis": {
"api-wordpress": {
"package": "@deity/falcon-wordpress-api",
"config": {
"host": "your-wordpress-host-url",
"protocol": "https",
"apiPrefix": "/wp-json",
"apiSuffix": "/wp/v2"
}
}
}
}

Currently handled features

  • fetch url method

  • get acf fields - You will need to install Advanced Custom Fields plugin

    [apiPrefix]/acf/v3
    [apiPrefix]/acf/v2
  • get posts, pages, authors, tags, video

    [apiPrefix]/v2/posts
    [apiPrefix]/v2/pages
    [apiPrefix]/v2/media
    [apiPrefix]/v2/types
    [apiPrefix]/v2/tags
    [apiPrefix]/v2/statuses
    [apiPrefix]/v2/taxonomies
    [apiPrefix]/v2/comments
    [apiPrefix]/v2/settings
  • get popular posts

    [apiPrefix]/v2/posts/popular
  • fetch languages - To support Wordpress languages use WPML plugin.

  • get logo

    [apiPrefix]/v2/blog/info
  • fetch categories

    [apiPrefix]/v2/categories
  • get menus with acf fields support in menu item

    [apiPrefix]/v2/menus/
  • unset users endpoint

    [apiPrefix]/v2/posts/users
  • 404 status

Add cdn support

To support CDN make sure that W3 Total Cache plugin is installed : https://wordpress.org/plugins/w3-total-cache/

Ask the community. #help

If you can't find what you're looking for, the answer might be on our community slack channel. Our team keep a close eye on this and will usually get back to you within a few hours, if not straight away. If you haven't created an account yet please sign up here slack.deity.io.