Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
/ wp-coinmarketcap Public archive

Gets API Json data from Coinmarketcap and creates posts in WordPress.

Notifications You must be signed in to change notification settings

eLmre/wp-coinmarketcap

Repository files navigation

WP-Coinmarketcap

A simple static PHP wrapper for public CoinMarketCap API methods. Using cron task and curl to retrieve data from coinmarketcap and writes them into wordpress.

Requirements

Installation

Import into your ACF plugin, file settings from acf-export.json Include external files in functions.php

require_once get_template_directory() .'/Coinmarketcap.php';
require_once get_template_directory() .'/cron-task.php';
require_once get_template_directory() .'/add-post-type.php';

Check the cron task list. theme_activate hook creates a task at the moment of activation your theme, also theme_deactivate hook remove cron task when theme deactivated.

Usage

get_option('coin_meta_keys'); // Return list of available meta-keys
get_option('coin_global'); // Global JSON Data

About

Gets API Json data from Coinmarketcap and creates posts in WordPress.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages