WP Puller - Target Theme releases
WP Puller fork that can deploy GitHub updates to any installed WordPress theme, including inactive themes.
by Jakub Hrncir and WP Puller contributors · github.com/legitjakub/wp-pusher-free · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/legitjakub/wp-pusher-free/releases/download/v1.1.1/wp-puller-target-theme.zipReadme
WP Puller - Target Theme
Update any installed WordPress theme from GitHub, including a theme that is not currently active. Free and open source.
Push to GitHub -> the selected theme updates automatically. No FTP, no manual uploads.
This fork of codician-team/wp-puller adds a target-theme selector. WP Puller can therefore deploy into an installed inactive theme while visitors continue to use the active theme. Webhooks and manual updates work with both public and private repositories.
This is the free alternative to WP Pusher.
What It Does
- Webhook-based deploys - Push to GitHub, site updates automatically
- Private repo support - Connect with a GitHub Personal Access Token
- Automatic backups - Snapshot before every update, one-click restore
- Subdirectory themes - Theme doesn't need to be at repo root
- Branch selection - Deploy from main, staging, production, or any branch
- Inactive theme support - Choose any installed theme as the deployment target
Install
- Download
wp-puller-target-theme.zipfrom Releases - WordPress admin → Plugins → Add New → Upload Plugin
- Upload ZIP, activate
Or manually upload the wp-puller-target-theme folder to /wp-content/plugins/.
This fork uses the same internal WordPress identifiers as the original plugin. Deactivate and remove the original WP Puller before activating this version; do not run both at the same time.
Setup
Connect a Repository
- Go to WP Puller in the admin sidebar
- Enter your GitHub repo URL:
https://github.com/you/your-theme - Select branch (usually
main) - Select the installed Target Theme. It may be inactive.
- If your theme is in a subdirectory, enter the path (e.g.,
theme/starter-theme) - Click Test Connection, then Save Settings
Set Up Webhook (for auto-updates)
- Copy the Payload URL and Secret from WP Puller
- GitHub repo → Settings → Webhooks → Add webhook
- Paste the URL and secret
- Content type:
application/json - Events: Just the push event
- Save
Now every push to your branch triggers an automatic update.
Manual Updates
Don't want webhooks? Click Check for Updates then Update Now whenever you want to pull the latest.
Private Repositories
For private repos, you need a GitHub Personal Access Token:
Fine-grained token (recommended)
- GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens
- Generate new token
- Select only the repository you need
- Permissions: Contents (read) and Metadata (read)
- Generate, copy, paste into WP Puller
Classic token
- GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)
- Generate new token
- Select
reposcope - Generate, copy, paste into WP Puller
Your token is encrypted with AES-256-CBC before storage.
Repository Structure
Theme files can be at the root:
your-repo/
├── style.css
├── functions.php
├── index.php
└── ...
Or in a subdirectory (set "Theme Path" in settings):
your-repo/
├── other-stuff/
└── theme/starter-theme/ ← Theme Path: theme/starter-theme
├── style.css
├── functions.php
└── ...
The theme needs a valid style.css with a Theme Name header.
FAQ
Is this actually free? Yes. MIT license, no premium tier, no feature gates.
How does it compare to WP Pusher? Same core idea—deploy WordPress themes from GitHub. WP Puller is free and open source. WP Pusher has more features (plugins, GitLab, Bitbucket) but costs money.
What if an update breaks my site? Restore from the Backups section. WP Puller keeps automatic backups before every update.
Can I update an inactive theme? Yes. Install the theme once, select it under Target Theme, and WP Puller will update that directory without switching the active theme.
Can I use this for plugins? Not yet. Theme-only for now.
Does it work with GitLab/Bitbucket? GitHub only.
Is my token secure? Encrypted at rest using your WordPress security salts. Never logged or transmitted except to GitHub.
For Developers
Hooks
// After successful update
do_action( 'wp_puller_theme_updated', $commit_data, $source );
// After backup restore
do_action( 'wp_puller_theme_restored', $backup_name );
// On init
do_action( 'wp_puller_init' );
Security
- Nonce verification on all AJAX
manage_optionscapability required- Webhook signatures verified (HMAC SHA-256)
- Tokens encrypted with AES-256-CBC
- All file operations via WP_Filesystem
Requirements
- WordPress 5.0+
- PHP 7.4+
- OpenSSL extension (for token encryption)
Contributing
Issues and PRs are welcome. This project is derived from codician-team/wp-puller.
License
MIT. Do whatever you want with it.
Read the full README on GitHub →