GetInfoByName() public static method

Retrieves the id and type of a custom field given field name for the current post.
Author: Edgar García - hunk (ing.edgar@gmail.com)
public static GetInfoByName ( string $customFieldName, $post_id ) : array
$customFieldName string
return array with custom field id and custom field type
function get_label($fieldName, $post_id = NULL)
{
    require_once "RCCWP_CustomField.php";
    global $post;
    if (!$post_id) {
        $post_id = $post->ID;
    }
    $field = RCCWP_CustomField::GetInfoByName($fieldName, $post_id);
    if (!$field) {
        return FALSE;
    }
    return $field['description'];
}