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.1.1

apply_filters('jetpack_unauth_file_download_url') is found 2 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-admin.php line 735
    					// If we have a valid URL, show the file link with additional details
    					$file_name = isset( $file_data['name'] ) ? $file_data['name'] : __( 'Attached file', 'jetpack-forms' );
    					$file_size = isset( $file_data['size'] ) ? size_format( $file_data['size'] ) : '';
    					$file_id   = absint( $file_data['file_id'] );
    					$file_url  = \apply_filters( 'jetpack_unauth_file_download_url', '', $file_id );
    					$file_info = empty( $file_size ) ? $file_name : $file_name . ' (' . $file_size . ')';
    
    					printf(
    						'<div><a href="%s" target="_blank">%s</a></div>',
    						esc_url( $file_url ),
    						esc_html( $file_info )
    
  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback-field.php line 273
    				}
    				$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;
    			}
    			$this->value['files'] = $files;
    			return $this->value;
    		}
    

See this hook used in plugins: