gpeb_queryer_entries

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter which all entries to display from the query.

Usage

Filter the entries to display – only display first 4.

add_filter( 'gpeb_queryer_entries', function( $entries, $gf_queryer ) {
	$entries = array_slice( $entries, 0, 4 );
	return $entries;
}, 10, 2 );

Filter field choices in a specific form.

add_filter( 'gpeb_queryer_entries', function( $entries, $gf_queryer ) {
	if ( $gf_queryer->form_id != '2' ) {
		return $entries;
	}
	$entries = array_slice( $entries, 0, $gf_queryer->total_count );
	return $entries;
}, 10, 2 );

Parameters

  • entries array

    The entries to be displayed.

  • gf_queryer \GF_Queryer

    Gravity Forms Querying Object.

Since

This filter is available since Gravity Forms Entry Blocks 1.0-beta-1.7.