Plugins not working on AJAX requests
//This is the function that fails when calling the function via an AJAX request. $context[‘stories’] = apply_filters(‘xfwpint_get_slider_post_data’, $context[‘stories’]); When calling via ajax , you have to include file in your ajax action function, file in which you have defined your filter, so it gets called. For e.g. require_once(‘./my_file_containing_filter_function’);