Search posts, tags, users, and pages
Mahesh
Nice Article.
Suggestion: Recommended to use forEach in your first example as you are not returning anything from array.
forEach