helpful_datatables_language

Helpful uses the Datatables plugin. In order to show the datatables in your language, Helpful provides a filter that allows you to insert the URL to the language file.

So if you want to use the German language, for example, you can write the following in your functions.php:

/**
 * @param string $default
 * @param string
 */
add_filter('helpful_datatables_language', function (string $default) {
    $default = '//cdn.datatables.net/plug-ins/1.10.20/i18n/German.json';
    return $default;
});

Was this post helpful?

Top