Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3617807
Change default for “Show 10 entries”
Open

Comments

  •  1
    Dave Wright started the conversation

    Curious if there’s a way to change the default “Show x entries” to be set to something other than 10.

    As per inceweb’s post this is not related to the “Limit” functionality, purely about the # of entries displayed by default. I’d like to be able to set it to 25 or 50.

  •  1,224
    Dustin replied

    Hi Dave,

    Please add the custom code below. (How do you add a custom code?)

    add_filter( 'wpcpt_datatable_params_arr', function ( $params ) {
        $params['pageLength'] = 25;
        return $params;
    }, 99 );

    Best regards,
    Dustin

  •  1
    Dave Wright replied

    Thanks Dustin!