Where paramaters of a custom function are coming from inside the loop?
The answer can be found in the documentation for get_the_title: $post (int|WP_Post) (Optional) Post ID or WP_Post object. Default is global $post. If you don’t supply a post object or post ID, it defaults to using the global $post variable. When you call the_post() within the loop, this populates the global $post variable with the … Read more