Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
Long file names will be automatically truncated on upload for names longer than 100 characters. Use this hook to customize this limit.
Usage
add_filter( 'frm_max_filename_length', 'change_max_filename_limit' );
Parameters
- $limit (integer)
- $name (string)
Examples
Change maximum filename limit
add_filter( 'frm_max_filename_length', 'change_max_filename_limit' );
function change_max_filename_limit( $limit, $name ) {
// default is 100.
return 200;
}