WP Manifestindependent plugin directory
manifest / admin / promotions-update

Promotions Update

Fetches mock API data and displays it in WordPress admin under a new "Promotions" menu. Optionally updates daily via cron.

★ 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/m-haris-dev/promotions-update/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.

Promotions Update WooCommerce Plugin

Description

Fetches mock API data and displays it in WordPress admin under a new "Promotions" menu. Optionally updates daily via cron.

Features

  • Fetch data from API using wp_remote_get
  • Display promotions in admin dashboard
  • Optional daily cron update
  • Modular class-based design

Installation

  1. Upload promotions-update folder to /wp-content/plugins/.
  2. Activate plugin from WordPress admin.
  3. Visit Promotions menu to view data.

Hooks Used

  • admin_menu → create admin page
  • wp_remote_get → fetch API safely
  • wp_schedule_event → schedule cron job

Notes