An open API service indexing awesome lists of open source software.

https://github.com/xenioushk/offer_notice_manager_wordpress

This is a simple guidelines and script that reads an external JSON file and displays an offer to the WordPress admin dashboard.
https://github.com/xenioushk/offer_notice_manager_wordpress

cron cronjob cronscheduler transients wordpress

Last synced: over 1 year ago
JSON representation

This is a simple guidelines and script that reads an external JSON file and displays an offer to the WordPress admin dashboard.

Awesome Lists containing this project

README

          

# Read JSON from an external URL in WordPress

This is a simple guidelines and script that reads an external JSON file and displays an offer to the WordPress admin dashboard.

## Create a JSON file

Our initial plan is to create an offer notification message to inform admin users about a discount. This message will display only the admin area. So, create a JSON file, and copy this JSON code.

```JSON
{
"msg": "Celebrate with us and save 15%. Hop into egg-citing deals and enjoy the season: Start shopping now!",
"offer_starts": "11.09.2024",
"offer_ends": "13.09.2024",
"offer_id": "bnm_11092024_12092024"
}
```