I have created a wordpress plugin which use widget to show result in front-end.
and I’m going to add an ajax pagination, refreshing data. could you tell me how to rerun wordpress widget with new parameters sent to it ?
getting more clear, there is a job method in my Viewer widget class which extends WP_Widget:

class Viewer extends WP_Widget {
...
public function widget($args, $instance) {

  $input['page'] = $_GET['page'];

  $query = $this->jobs($input);

  return $query;

}

How colud I assign page var from html DOM using jQuery and send it to jobs php function ?

Read more here: send variable and run a specific method of WordPress widget class by ajax


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: