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

apply_filters('jetpack_unauth_file_download_url') is found 3 times:

  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback-field.php line 243
    					$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 634
    			}
    
    			$file_name = $file['name'] ?? __( 'Attached file', 'jetpack-forms' );
    			$file_size = isset( $file['size'] ) ? size_format( $file['size'] ) : '';
    			$file_url  = apply_filters( 'jetpack_unauth_file_download_url', '', absint( $file['file_id'] ) );
    			$file_type = $file['type'] ?? '';
    
    			$file_items[] = $this->render_email_file_row( $file_name, $file_size, $file_url, $file_type );
    		}
    
    		if ( empty( $file_items ) ) {
    
  • /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback-field.php line 913
    				}
    				$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: