WP Manifestindependent plugin directory
manifest / integrations / ziad-api-plugin

Ziad API Plugin

WordPress plugin that renders an external REST API as a configurable table — via a Gutenberg block, an admin screen and a WP-CLI command, with transient caching.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/ze2322/ziad-api-plugin/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

WordPress API Plugin

Ziad API Plugin

A WordPress plugin that retrieves data from an external API and displays it in a customizable table format.

Features

  • Custom Gutenberg block for displaying API data
  • Toggle column visibility controls
  • Admin dashboard page with refresh button
  • Smart caching (1 hour) to minimize API calls
  • AJAX endpoint for data access
  • WP CLI command for data refresh

Requirements

  • WordPress 5.8+
  • PHP 7.4+

Usage

Add Block to Page

  • Edit any page
  • Add "API Data Table" block
  • Configure column visibility in sidebar settings

Admin Page

  • Navigate to Ziad API in WordPress admin
  • View data and click "Refresh Data" button

CLI Command

wp ziad-api refresh

File Structure

ziad-api-plugin/
├── src/
│   ├── Plugin.php
│   ├── APIClient.php
│   ├── AJAXHandler.php
│   ├── AdminPage.php
│   ├── CLI/
│   │   └── RefreshDataCommand.php
│   └── Blocks/
│       ├── BlockRegistrar.php
│       └── assets/
│           ├── block.js
│           ├── frontend.js
│           └── block.css
├── assets/
│   ├── admin.js
│   └── admin.css
├── composer.json
├── ziad-api-plugin.php
└── README.md

Technologies

  • PHP OOP with PSR-4 autoloading
  • WordPress Gutenberg (Block Editor)
  • AJAX & Transients API
  • Composer