Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro
Docs

Git and deploys

Deploy from a scriptPro

1 minute to read Updated 1 week ago Needs UglyFields Pro

You want: a deploy that updates the fields without anyone opening the admin.

BASH
set -e
git pull
wp ugly-fields check     # stops here if a file is broken
wp ugly-fields upgrade   # stored data up to date
wp ugly-fields sync      # the saved groups take the files
CommandWhat it does
checkReads every JSON of the theme and fails if one is not valid
upgradeBrings the stored data up to date
syncThe saved groups take what the files say

Did this article answer your question?