wp_stateless_skip_remove_media
wp_stateless_skip_remove_media
Appears in: wp-stateless.3.0, wp-stateless.3.0.1, wp-stateless.3.0.2, wp-stateless.3.0.3, wp-stateless.3.0.4, wp-stateless.3.1.0, wp-stateless.3.1.1, wp-stateless.3.2.2, wp-stateless.3.2.4, wp-stateless.3.2.5, wp-stateless.3.3.0, wp-stateless.3.4.0, wp-stateless.3.4.1, wp-stateless.4.0.3, wp-stateless.4.0.4, wp-stateless.4.1.1, wp-stateless.4.1.2
Hook Type: filter
See hook in action
Displaying hooks found in version: wp-stateless.4.1.2apply_filters('wp_stateless_skip_remove_media') is found 1 times:
- /lib/classes/class-utility.php line 234
* @param string $attachment_id Attachment ID. * @param bool $force (optional) Whether to force the sync even the file already exist in GCS. * @param bool $args (optional) Whether to only sync the full size image. */ $skip_remove_media = apply_filters('wp_stateless_skip_remove_media', false, $metadata, $attachment_id, $force, $args); // Make non-images uploadable. // empty $metadata['file'] can cause problem, so we need to generate it. if (empty($metadata['file']) && $attachment_id) { $mime_type = get_post_mime_type($attachment_id); $file = str_replace(wp_normalize_path(trailingslashit($upload_dir['basedir'])), '', $fullsizepath);