jetpack_unauth_file_upload_get_file

jetpack_unauth_file_upload_get_file

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: jetpack.15.0

apply_filters('jetpack_unauth_file_upload_get_file') is found 1 times:

  • /unauth-file-upload.php line 70
    	 * @param string $file_id The file ID.
    	 *
    	 * @return array|\WP_Error The file array, containing the content, name and type.
    	 */
    	$file = apply_filters( 'jetpack_unauth_file_upload_get_file', array(), $file_id );
    
    	if ( is_wp_error( $file ) || empty( $file ) ) {
    		wp_die( esc_html__( 'Error retrieving file content.', 'jetpack' ) );
    	}
    
    	$is_preview = isset( $_GET['preview'] ) && 'true' === $_GET['preview'];
    

See this hook used in plugins: