wpdatatables_filter_browse_tables_pagination_page_url

Contents

Description

The filter allows you to customize the pagination URLs for browsing wpDataTables. This is useful when you need to modify the URL structure or add custom query parameters to the pagination links.

Usage

add_filter('wpdatatables_filter_browse_tables_pagination_page_url', 'custom_pagination_page_url', 10, 4);

Parameters

  • $url string
    The default URL.
  • $link int
    The page number for the current pagination link.
  • $search_term_temp string
    The search term parameter appended to the URL (if any).
  • $current_url string
    The current URL of the page.

Examples

// Callback function for the wpdatatables_filter_browse_tables_pagination_page_url filter
function custom_pagination_page_url($url, $link, $search_term_temp, $current_url) {
    // Your code here

    return $url;
}

add_filter('wpdatatables_filter_browse_tables_pagination_page_url', 'custom_pagination_page_url', 10, 4);