Support » Plugin: TablePress » Pagination buttons

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    To make this work in TablePress, just one more small change is necessary, as I have renamed the filter hook that is used for this. Please try again with this:

    add_filter( 'tablepress_datatables_parameters', 'tablepress_change_pagination_type', 10, 4 );
    function tablepress_change_pagination_type( $parameters, $table_id, $html_id, $js_options ) {
        $parameters['pagination_type'] = '"sPaginationType": "full_numbers"';
        return $parameters;
    }

    Regards,
    Tobias

    mireillesan

    (@mireillesan)

    Thank you; it works like magic!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! Thanks for the confirmation!
    And no, it’s not magic, just code 😉

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination buttons’ is closed to new replies.