Get number of group duplicates given field name. The function returns 1
if there are no duplicates (just he original group), 2 if there is one
duplicate and so on.
public static GetFieldDuplicates ( integer $postId, $fieldName, $groupIndex ) : number | ||
$postId | integer | post id |
return | number | of groups |