Created
January 25, 2024 14:57
-
-
Save techjewel/743a883a055de6d40a5f70795107af31 to your computer and use it in GitHub Desktop.
get contact count by tag ids
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* FluentCRM get contact count by tag ids | |
* Example Usage: fcrmGetContactCountByTagIds([1,2,4]); | |
* @param array $tagIds | |
* @return int | |
*/ | |
function fcrmGetContactCountByTagIds($tagIds = []) | |
{ | |
return \FluentCrm\App\Models\Subscriber::filterByTags($tagIds)->count(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment