Development hooks
-
Hi
I tried to use the ‘berocket_aapf_listener_wp_query_args’ hook to pass in some arguments to the query. The hook fires but the arguments do not seem to get applied`but the function is returning the arguments array.
This is the code i am using
public function ajax_response_filters($args) { $args['tax_query'][] = array( 'taxonomy' => 'tax-name, 'terms' => 28, 'field' => 'id', 'include_children' => true, 'operator' => 'IN' ); return $args; } add_filter('berocket_aapf_listener_wp_query_args', array($this, 'ajax_response_filters'));
I have not yet bought the PRO version because I wanted to see if I could make the plugin work how I wanted to first. Any ideas why this is not working?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Development hooks’ is closed to new replies.