Custom Proof file and file name list
-
Hi!
Thank you for your fantastic plugin.
To make easy search on Windows I would customize Proof.txt file and “Copy Filenames” function.
I would create this list type:
“017” OR “019” OR “021”So in my config file I added:
function my_custom_filename_separator( $divider ) {
return ‘ OR ‘;
}add_filter( ‘picu_filename_separator’, ‘my_custom_filename_separator’ );
function my_picu_approved_filename( $filename, $attachment_id ) {
$attachment = wp_get_attachment_image_src( $attachment_id, ‘full’ );
return wp_basename(‘”‘ . $filename . ‘”‘);
}add_filter( ‘picu_approved_filename’, ‘my_picu_approved_filename’, 10, 2 );
First function to add the separator ” OR “
The second function to get filenams between doule quotes: “017”.
The proof.txt file is generated correctly but there is an extra OR at the end of the string.
The Copy Filenames is no longer working! Why?
Thank you for the support.
- The topic ‘Custom Proof file and file name list’ is closed to new replies.