Custom Rules
-
I need some help with adding a custom rule. I want to change the file name to a UUID on upload.
I’m referencing the “custom rule” documentation, but am not sure where to place the add_filter function with my new rule code. (Your sample below)
add_filter( ‘frou_sanitize_file_name’, function($filename_infs){
$filename_infs[‘structure’][‘translation’][‘my_custom_rule’] = get_current_user_id();
return $filename_infs;
}, 20 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Rules’ is closed to new replies.