WP Center Test is a WordPress plugin that creates a custom endpoint and manages AJAX-driven user data fetching and display.
- Custom endpoint creation for WordPress.
- AJAX functionality to fetch user details and clear cached data.
- Interactive frontend display of user data in a popup modal.
- Cache mechanism for efficient data retrieval and performance optimization.
- Download the
wpcenter-test
plugin. - Upload the plugin files to the
/wp-content/plugins/wpcenter-test
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress.
- Visit the custom endpoint added by the plugin to view the fetched user data.
- Click on a user row to view detailed information about the user.
- Use the "Önbelleği Temizle" button to clear cached user data.
- Clone the repository to your local development environment.
- Ensure WordPress is installed and running.
wpcenter-test.php
: Main plugin file that initializes the plugin, creates a custom endpoint, and enqueues scripts and styles.wpcenter-test.js
: JavaScript file for handling frontend AJAX requests and dynamic content display.wpcenter-test.css
: Style file for custom styling.img/
: Directory containing images used by the plugin.
-
Adding New Endpoints:
- Modify
wpcenter_test_create_endpoint()
inwpcenter-test.php
to add new custom endpoints.
- Modify
-
AJAX Functionality:
- Add new AJAX handlers in
wpcenter-test.php
. - Update
wpcenter-test.js
to handle new AJAX requests and responses.
- Add new AJAX handlers in
-
Frontend Display:
- Modify or extend
wpcenter_test_display_users()
inwpcenter-test.php
for changes in user data display. - Update
wpcenter-test.js
for any interactive frontend changes.
- Modify or extend
-
Styling:
- Update
wpcenter-test.css
to alter or enhance the visual style of the plugin.
- Update
- Test the plugin in a local WordPress environment.
- Test all AJAX functionalities and user interactions.
- Validate the display of user data and the functionality of the cache clearing mechanism.
GPL-2.0 License