Filters/Actions for Blog Widget

#Actions

The Blog Widget offers easiness to developers to extend its functionalities. Here are the actions included in the Blog Widget.
The following parameters are used for the executions. The detailed description of these parameters is as explained below.

  1. $settings : This is the entire settings array for the respective dragged dropped Blog Widget. One can add conditional logic as per the selected options in the settings.
  2. $post_id : This is the single post ID. This will vary according to the post. This is useful when one wants to fetch post specific data and accordingly wants to display it.

#Filters

The following filters are available for Blog Widget.
The following parameters are used for the executions. The detailed description of these parameters is as explained below.

  1. $settings : This is the entire settings array for the respective dragged dropped Blog Widget. One can add conditional logic as per the selected options in the settings.
  2. $post_id : This is the single post ID. This will vary according to the post. This is useful when one wants to fetch post specific data and accordingly wants to display it .
  3. $query : The WP_Query object.
  4. $classes : The array of classes.
  5. $date_format : This is the date format in terms of “F j, Y”
Was this article helpful?