Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zendyani/wp-ajax-plugin
The codebase of a ajax wordpress plugin tutorial.
https://github.com/zendyani/wp-ajax-plugin
wordpress wordpress-development wordpress-plugin
Last synced: 6 days ago
JSON representation
The codebase of a ajax wordpress plugin tutorial.
- Host: GitHub
- URL: https://github.com/zendyani/wp-ajax-plugin
- Owner: zendyani
- License: mit
- Created: 2024-02-04T21:45:02.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-05T00:09:49.000Z (10 months ago)
- Last Synced: 2024-08-23T18:05:12.933Z (3 months ago)
- Topics: wordpress, wordpress-development, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP AJAX Plugin README
## Overview
This is a simple AJAX example for WordPress using a custom plugin called `WP AJAX Plugin`. It demonstrates how to create an AJAX endpoint and handle form submissions with nonces for security purposes.## Installation
To install this plugin, follow these steps:1. Create a new directory named "wp-ajax-plugin" within the plugins folder of your WordPress installation.
2. Copy all files from the provided code into the newly created directory.
3. Activate the plugin through the WordPress Admin Dashboard > Plugins page.## Usage
After activating the plugin, navigate to **Settings** -> **My AJAX Plugin**. Here, users can enter their names and submit them via AJAX.The plugin includes a JavaScript file that handles the AJAX requests. This file enqueues the necessary dependencies and localizes variables such as the AJAX URL.
## Features
* Simple AJAX functionality for handling form submission
* Nonce verification for added security
* Customizable user interface
* Handles both logged-in and not-logged-in users## Limitations
* Limited error checking on client side
* No database storage for submitted data
* Not optimized for performance or scalability## Contribution
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or pull request on GitHub at https://github.com/zendyani/wp-ajax-plugin.## License
This project is licensed under the MIT license - see the LICENSE file for details.