Start a conversation

Change any icon

If you would like to use your own icon in client document manager you can use the filter "sp_cdm_viewfile_image"

Here is an example function on how to switch out the pdf icon

add_filter('sp_cdm_viewfile_image', '_cdm_custom_images',10,2); function _cdm_custom_images($img,$r){ $ext = preg_replace('/^.*\./', '', $r['file']); if ($ext == 'pdf') { $img = ''; } return $img; }

Choose files or drag and drop files
Was this article helpful?
  1. Anthony Brown

  2. Posted
  3. Updated