get_custom_fields

Gets custom fields for anything

$fields = get_custom_fields($params);

Return Values

Array with the custom fields or false

Parameters

You can pass parameters as string or as array.

//Example of paramerers as string
$fields = get_custom_fields("field_type=price&content_id=".$cont_id);
parameteroptional valuesdescription
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
The documentation is under development. Help us by editing this page.