Hi!
I am new in WordPress and I am doing my first theme with Thematic.
I have been using filters and hooks to customize my theme without problems,
however, there are some things I haven´t understand completely
I have a doubt undertanding when to use $content (or another parameter) inside the parenthesis of my function:
Untill now, I have doing like this, for example:
my_custom_function($content) {
// here I modify $content (sometimes I overwrite doing $content= ... )
// (Other times I add things with $content.= ... )
return $content;
}
// and later I use add_filter where corresponding.
To sum it up, my filter function accept an argument (the initial content) and I return the modified content (the output) when it´s done.
Not long ago, I have modified the page title following this nice example:
http://themeshaper.com/forums/topic/tip-modify-thematic-page-title
And I was wondering why there is no need of putting any argument inside the parenthesis of the function.
I would apreciatte if somebody could give me an answer or a link I can read about this topic: The parameter / argument of the function to be filtered ( In the examples I´ve seen, sometimes is $content, other times is another variable, and other times there is no variable)
Thanks in advance!
Víctor