helpful_datatables_string_length

Helpful shortens strings longer than 35 characters so that the tables do not become confusing. You can manipulate the whole thing with a filter, or you can disable the limitation completely.

/**
 * Without limit
 *
 * @param int $length
 * @return int
 */
add_filter( 'helpful_datatables_string_length', function(int $length) {
    $length = 0;
    return $length;
});

/**
 * A string length of 50 characters
 *
 * @param int $length
 * @return int
 */
add_filter( 'helpful_datatables_string_length', function(int $length) {
    $length = 50;
    return $length;
});

Was this post helpful?

Top