helpful/ajax_get_posts_data/args

This filter can be used to manipulate the arguments for the query of the output for the start page in the helper settings.

This only affects the table, but not the statistics. Here you can find an example for the functions.php. In the example the post types are manipulated.

/**
 * @param array $args
 * @return array
 */
add_filter('helpful/ajax_get_posts_data/args', function(array $args) {
    $args['post_type'] = ['post', 'page', 'docs'];
    return $args;
});
Was this post helpful?
Top