Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add PluginUpdater to Support Plugin Updates from Custom API #1964

Merged
merged 9 commits into from
Oct 3, 2024

Conversation

josephfusco
Copy link
Member

Introduced a PluginUpdater class for FaustWP that allows plugins to receive updates from a custom API endpoint (https://wpe-plugin-updates.wpengine.com/). This class registers hooks to override update notifications and fetch information from the custom API. Key changes include:

  • Added a mechanism to define plugin properties and cache update checks.
  • Implemented transient caching to reduce API requests.
  • Hooked into WordPress’s update system (plugins_api, pre_set_site_transient_update_plugins) for fetching and displaying plugin update details.

Copy link

changeset-bot bot commented Oct 3, 2024

🦋 Changeset detected

Latest commit: 54eb0d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@faustwp/wordpress-plugin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 3, 2024

📦 Next.js Bundle Analysis for @faustwp/getting-started-example

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@josephfusco josephfusco marked this pull request as ready for review October 3, 2024 16:42
@josephfusco josephfusco requested a review from a team as a code owner October 3, 2024 16:42
- update the docblock to account for possible null values
@jasonbahl jasonbahl merged commit 011cd93 into canary Oct 3, 2024
21 of 22 checks passed
@jasonbahl jasonbahl deleted the plugin-updater branch October 3, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants