Sufiyan Awesome Block
A simple plugin that retrieves data from a remote API endpoint, and makes that data accessible/retrievable from an API endpoint on the WordPress site your plugin is installed on. The data will be displayed via a custom block and on an admin WordPress page as described. A simple WP CLI command is also available
by Sufiyan Khan · github.com/sufiyankhan2203/sufiyans-awesome-block
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sufiyankhan2203/sufiyans-awesome-block/archive/refs/heads/main.zipSufiyan's Awesome Plugin
A simple plugin that retrieves data from a remote API endpoint, and makes that data accessible/retrievable from an API endpoint on the WordPress site your plugin is installed on. The data will be displayed via a custom block and on an admin WordPress page as described. A simple WP CLI command is also available
This Plugin Follows WordPress-VIP-Go Coding Standards.
Getting Started
Installing
- Tested on PHP 8.1.29 and WordPress 6.6.2
- Download and extract the plugin files to your WordPress plugins directory
- Install Composer and run
composer install
$ composer install
- Activate the plugin through the 'Plugins' menu in WordPress
Using
Thds Plugin adds a Custom Gutenberg Block and a WP_CLI Command
$ wp Sab refresh_api
Screen Shots
Frontend
Backend
Block
CLI Command
Built With
This Plugin uses a number of open source projects to work properly:
- WordPress - an open source content management system
- Gutenberg - new paradigm in WordPress site building and publishing
- WP_CLI - the command-line interface for WordPress
- Composer - a Dependency Manager for PHP
- SASS - Sass is a stylesheet language that’s compiled to CSS
- JavaScript - a dynamic programming language
- node.js - evented I/O for the backend
- NPM - is the world's largest software registry
- PHPCS - PHP_CodeSniffer is a set of two PHP scripts; one for validating PHP, syntax, and the other for checking adherence to a defined set of coding standards.
Contact
Sufiyan Khan - Senior WordPress Developer
Code is Poetry