beaverbuilder
2/17/2018 - 12:03 AM

This snippet is used in the following knowledge base article – http://kb.wpbeaverbuilder.com/article/591-create-a-filter-to-customize-the-di

This snippet is used in the following knowledge base article – http://kb.wpbeaverbuilder.com/article/591-create-a-filter-to-customize-the-display-of-post-data

<php //Don't show this line

function fl_builder_loop_query_args_filter( $query_args ) {
      if ( 'example-module' == $query_args['settings']->id ) {
            $query_args['post_type'] = array( 'post', 'product' );
        }
    return $query_args;
}
add_filter( 'fl_builder_loop_query_args', 'fl_builder_loop_query_args_filter' );