Gets custom fields
$fields = get_custom_fields($params);
You can pass parameters as string or as array.
//Example of paramerers as string
$fields = get_custom_fields("field_type=shipping&is_active=n&content_id=".$cont_id);
parameter | optional values | description |
---|---|---|
id | get_custom_fields("id=3"); |
the id of custom field |
content_id | get_custom_fields("content_id=7"); |
id of page or post |
return_full | get_custom_fields("content_id=7&return_full=true"); |
if set it will return full array insead of values |