jetpack_unauth_file_download_url

jetpack_unauth_file_download_url

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: jetpack.15.5

apply_filters('jetpack_unauth_file_download_url') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback-field.php line 232
    					$files[] = array(
    						'file_id' => $file_id,
    						'name'    => $file['name'] ?? __( 'Attached file', 'jetpack-forms' ),
    						'size'    => size_format( $file['size'] ),
    						'url'     => apply_filters( 'jetpack_unauth_file_download_url', '', $file_id ),
    					);
    				}
    			}
    			return array(
    				'type'  => 'file',
    				'files' => $files,
    
  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback-field.php line 420
    				}
    				$file_id                = absint( $file['file_id'] );
    				$file['file_id']        = $file_id;
    				$file['size']           = size_format( $file['size'] );
    				$file['url']            = apply_filters( 'jetpack_unauth_file_download_url', '', $file_id );
    				$file['is_previewable'] = $this->is_previewable_file( $file );
    				$files[]                = $file;
    			}
    			$value['files'] = $files;
    			return $value;
    		}
    

See this hook used in plugins: