Save Data
A WordPress plugin that allows admins to input data through the admin panel, save it into the wp_options table as JSON, and provide it to JavaScript for frontend usage.
by hassan Ali Askari · github.com/hassan7303/save-data · website
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/hassan7303/save-data/archive/refs/heads/master.zipReadme
Save Data Plugin
A simple WordPress plugin that allows administrators to input data through the admin panel, save it into the wp_options table as JSON, and provide it to JavaScript for frontend usage.
Description
This plugin is designed to give administrators a simple interface to input custom data, which is stored in the WordPress wp_options table as JSON. The data can then be accessed on the frontend using JavaScript for various dynamic purposes.
The plugin includes fields for adding titles, messages, options with titles, links, and colors, as well as duration and time values. Data entered in these fields is saved and then passed to a JavaScript file for use on the frontend.
Features
- Custom admin interface to input data (title, message, options, etc.).
- Saves data as JSON in the
wp_optionstable. - Passes stored data to JavaScript for use on the frontend.
Installation
- Upload the
save-datafolder to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
Usage
- Install and Activate: Upload and activate the plugin in your WordPress installation.
- Navigate to Admin Panel: Go to the 'Save Data' option in the WordPress admin panel.
- Input Data: Use the form provided to input data such as title, message, options (title, link, and color), and time-based fields like duration and time.
- Data on Frontend: The saved data will be available on the frontend, passed via JavaScript for dynamic interaction.
How It Works
- Admin Menu: Adds two menu items in the WordPress admin panel – "Save Data" for configuring settings, and "List of Data" (not implemented yet) for viewing stored data.
- Input Fields: The form in the settings page allows the user to input:
- Title
- Message
- Option title, link, and color
- Link and color (general)
- Duration and time
- Save Data: Data is stored in the
wp_optionstable under the keysave_data_options. - JavaScript Access: The plugin passes this data to a JavaScript file (
index.jsin the/react/folder), which is loaded on the frontend for further use.
Author and Support
- Author: Hassan Ali Askari
- Telegram: @hassan7303
- Email: hassanali7303@gmail.com
- Instagram: @hasan_ali_askari
- GitHub: GitHub
License
MIT License. See the LICENSE for more information.
افزونه Save Data
یک افزونه ساده وردپرس که به مدیران اجازه میدهد دادهها را از طریق پنل مدیریت وارد کرده و آنها را به صورت JSON در جدول wp_options ذخیره کند و به جاوا اسکریپت برای استفاده در فرانتاند ارائه دهد.
توضیحات
این افزونه به مدیران این امکان را میدهد که دادههای سفارشی مانند عنوان، پیام، گزینهها (شامل عنوان، لینک و رنگ) و مقادیر مرتبط با زمان را وارد کنند. این دادهها به صورت JSON در جدول wp_options ذخیره میشوند و سپس از طریق جاوا اسکریپت در فرانتاند برای تعاملات پویا در دسترس خواهند بود.
ویژگیها
رابط کاربری ساده برای ورود دادهها
ذخیره دادهها به صورت JSON در جدول
wp_optionsارائه دادهها به جاوا اسکریپت برای استفاده در فرانتاند
نصب
پوشه save-data را به دایرکتوری /wp-content/plugins/ بارگذاری کنید.
افزونه را از طریق منوی 'افزونهها' در وردپرس فعال کنید.
استفاده
نصب و فعالسازی: افزونه را در وردپرس نصب کرده و آن را فعال کنید.
ورود به پنل مدیریت: به گزینه 'Save Data' در پنل مدیریت وردپرس بروید.
ورود دادهها: از فرم ارائه شده برای وارد کردن دادههایی مثل عنوان، پیام، گزینهها (عنوان، لینک و رنگ) و مقادیر مرتبط با زمان استفاده کنید.
داده در فرانتاند: داده ذخیره شده از طریق جاوا اسکریپت در فرانتاند برای استفاده پویا قابل دسترسی خواهد بود.
نویسنده و پشتیبان
نویسنده: حسن علی عسکری
تلگرام: @hassan7303
ایمیل: hassanali7303@gmail.com
اینستاگرام: @hasan_ali_askari
گیتهاب: 'GitHub'
مجوز
مجوز MIT. برای اطلاعات بیشتر به LICENSE مراجعه کنید.