Skip to content

AponAhmed/contact

Repository files navigation

Gmail API Contact WordPress Plugin

The Gmail API Contact WordPress Plugin allows you to manage contact forms and send messages via Gmail API directly from your WordPress website.

Features

  • Ajax Actions Hook for Admin: Handles Ajax actions for the admin panel.
  • Assets Registration: Enqueues necessary styles and scripts for the admin area.
  • Admin Initialization: Initializes the admin part for handling assets or execution in the admin area.
  • Admin Menu: Adds a submenu page for Mail Config under the options-general.php menu.
  • Ajax Config POST: Handles Ajax requests to update Gmail API credentials.
  • Ajax Admin Config Update: Handles Ajax requests to update admin configurations.
  • Option Page: Displays the admin options page with different configurations.
  • Login: Generates a login link for Google Account authentication.
  • Admin Config: Displays and updates the admin configurations for Gmail API.
  • Set Config: Displays the initial configuration form for Gmail API.

Usage

  1. Installation: Install the plugin in your WordPress environment.
  2. Configuration:
    • Access the Mail Config submenu under options-general.php.
    • Set up the Gmail API credentials and configure other admin settings.
    • Authorize the application.

Installation

  1. Download the plugin zip file or clone the repository.
  2. Upload the plugin folder to the wp-content/plugins/ directory.
  3. Activate the plugin through the WordPress admin panel.

Contributing

If you want to contribute to this project, follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature: git checkout -b feature-name.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature-name.
  5. Submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Mention anyone who helped or inspired you in this project.