Wp gf field get (WP-CLI)
Naar navigatie springen
Naar zoeken springen
$ wp help gf field get NAME wp gf field get DESCRIPTION Returns the JSON representation of a field. SYNOPSIS wp gf field get <form-id> <field-id>
Voorbeeld
$ wp gf field list 2 +----+------------+-------------------------+ | id | type | label | +----+------------+-------------------------+ | 2 | text | Name | | 5 | email | E-mailadres | | 16 | text | Telefoonnummer | | 11 | textarea | Vraag of opmerking | +----+------------+-------------------------+ $ wp gf field get 2 2 {"type":"text","id":2,"label":"Name","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":2,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputMaskIsCustom":false,"maxLength":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"field-33 field-left","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","enablePasswordInput":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"pageNumber":1,"fields":"","displayOnly":""}