Description
When video image importing into WordPress Media Gallery is enabled from plugin settings, the plugin will automatically import the video image and, by default, apply a suffix “-youtube-thumbnail” to the file name. To prevent the suffix from being applied, simply use this filter.
Parameters
- $apply
-
(boolean)(required) Apply suffix to image file name (
true
) or prevent it (false
).- Default:true
Examples
Prevent file suffix from being applied.
add_filter( 'cbc_apply_filename_suffix', '__return_false' );