2011-06-15, 07:35:28
More on this...
What do you think would be better?
Or this:
First is like Mike's tip. In the second one the check for the current page is done inside the hooked function.
What do you think would be better?
Code:
if (...) {
add_action('footer','your_function');
}
function your_function() {
// code...
}
Or this:
Code:
add_action('footer','your_function');
function your_function() {
if (...) {
// code...
}
}
First is like Mike's tip. In the second one the check for the current page is done inside the hooked function.