Tagged Questions
2
votes
2answers
183 views
How To Determine If A Filter Is Called In A Sidebar/Widget Context?
So I have a plugin that appends or prepends an enhanced author biography to the content of a page/post/custom post type.
It does this by hooking to either the_content or the_excerpt and ...
3
votes
1answer
85 views
Determining a Widget Instance and Sidebar Location?
When using the filter:
add_filter('widget_display_callback', 'function_name');
function function_name($instance) {
/* Some Code */
return $instance;
}
Is it possible to determine the sidebar ...
0
votes
1answer
67 views
Distinguish between different widgets of the same type
I'm playing a little with wordpress widgets and I trying to do something like this:
I created a sidebar and a widget to display a slider with latest posts. The jQuery loader is something like this:
...
1
vote
3answers
1k views
Hooking a function onto the sidebar?
I'm looking for a way to add some content to the top of the sidebar when it get's loaded.
I've tried hooking onto the get_sidebar action as referenced here, but it seems to override the sidebar call ...
1
vote
2answers
637 views
From what hook on is it possible to conditionally add actions?
I tried to have a siderbar registered at the "init" hook based on a variable from the theme options array indicating whether the sidebar should be used in the design.
Now it appears that that the ...