No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
classes
.gitignore
GulpFile.js
LICENSE
README.MD
ezdata.php
package.json

README.MD

#EZ Data WP Plugin The EZ Data WP Plugin helps connects your WordPress Website to EZData.io

Installing

  • Clone Repo
  • npm install
  • gulp js

Documentation

Documentation can be found on the EZData website

PHP SDK

The PHP SDK is built into the plugin Cache Warning: If you using a caching plugin and want to use the PHP functions to load on an action callback you will face issues with cache’ing, use JS instead.

Create Item

Creating an item is easy, just pass in the group_id and a data array with the data for the item:

<?php

// As a function
$group = INT;
$data = array(
  'value' => INT,
  'misc_one' => INT,
  'misc_two' => INT,
  'misc_three' => STRING,
  'misc_four' => STRING,
);
ezdata_create_item( $group, $data );
  
// Global Object
global $EZData;
$EZData->ezdata_create_item( $group, $data );

JavaScript SDK

The EZ Data JavaScript Library is also built into the plugin.

Create Item

Creating an item is easy, just pass in the group_id and a data array with the data for the item:

var group_id = INT
var data = {
  value: INT,
  misc_one: INT,
  misc_two: INT,
  misc_three: STRING,
  misc_four: STRING
}
  
ezdata.lib.create_item( group_id, data );