Advanced Post Block

  1. Home
  2. Docs
  3. Advanced Post Block
  4. Guides
  5. Advanced


Custom Query

You can configure the query outside of the available option using the apb_query filter.

Just add this filter anywhere and you will get the query as a parameter of the callback function. modify the query and return it.


add_filter( 'apb_query', apbQuery() );
function apbQuery( $query ) {
    $query['lang'] = 'en';

    return $query;
Was this article helpful to you?

How can we help?