Okay
  Public Ticket #2920381
Modifying show entries pulldown
Closed

Comments

  • Graham started the conversation

    Hello

    I know I have seen this somewhere but cannot find it again!  How do I modify a table to remove the ALL and maybe the 100 rows on the show entries pulldown! 

    Thanks

    Graham 

  •  472
    Isidora replied

    Hi Graham,

    Thank you for your purchase.

    Sorry for the late response, we have some agents that have contracted Covid-19, so our team is cut in half.

    For the hook - you need to place it in functions.php of your theme. It works like this, but you can add another parameter since it's altered in later versions of the plugin:

    add_filter( 'wpdatatables_filter_table_description', 'verse_show_entries', 10, 3 );
    function verse_show_entries( $object, $table_id, $wpDataTableOBJ ){
        $object->dataTableParams->aLengthMenu = array(
            array(
                10,
                25,
                50,
                75,
                100
            ),
            array(
                10,
                25,
                50,
                75,
                100
            )
        );
        return $object;
    }

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Graham replied

    Milan.

    Thanks.  Works Great.

    Stay safe.

    Graham

  • [deleted] replied

    Hi Graham

    Thank you for letting us know, we are glad to hear thatsmile.png

    If there is anything else we can assist you with please don't hesitate to open a new ticket.

    Have a wonderful day!