This plugin registers Musuem of Jewish Heritage custom configurations and manages acf-pro syncs.
This plugin is always activated since it is a must use plugin.
Since composer requires special modifications to work with git for package managment, it relies on git tags and not the has references, adding extra steps for deployment.
ACF pro creates jSON file backups on every save in the UI. These are stored in the acf-json
directory within this plugin.
If you are planning to work on acf-pro, here are the steps to follow:
- Make sure your under the master branch of this plugin before beginning development running
git checkout master
and thengit pull origin master
, since composer checks you out to the tag reference. - Once you complete your development with acf pro within wordpress, commit all jSON files to the master branch (
git add acf-pro
and thengit commit
) and push to the remote (git push origin master
) - If this is ready to be shared to the entire project, we need to tag a release (
git tag 1.0.*
where asterisk is the next version number. Make sure you have all tags from remotegit pull origin --tags
and You can view all current tags runninggit tag -l
) - Now we need to push the tag
git push origin --tags
- Change directory to the project root.
- Open the composer.json
- Under
repositories
configs, look for this pluginmjh-nyc/mjhedu-custom-configurations
and update thereference
value undersource
to the tag you added - You can run
composer update mjh-nyc/mjhedu-custom-configurations
to checkout your plugin to the tag (optional if you plan to do more work) - Commit composer files to root
Acf-pro provides a UI to sync jSON file to the current wordpress installation so that your field groups and synced with the files stored in the repository. You can do them all or specific field groups. Please follow documentation for syncing [https://www.advancedcustomfields.com/resources/synchronized-json/] (https://www.advancedcustomfields.com/resources/synchronized-json/)