gpeb_entries_total_count

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

Description

Filter the total entries count.

Usage

Filter the entries count to 5.

add_filter( 'gpeb_entries_total_count', function( $total_count, $gf_queryer ) {
	return 5;
}, 10, 2 );

Filter the entries count for a specific form.

add_filter( 'gpeb_entries_total_count', function( $total_count, $gf_queryer ) {
	if ( $gf_queryer->form_id != '2' ) {
		return $total_count;
	}
	return 5;
}, 10, 2 );

Parameters

  • total_count int

    The total count of entries.

  • gf_queryer \GF_Queryer

    Gravity Forms Querying Object.

Since

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