jetpack_unauth_file_upload_get_file
jetpack_unauth_file_upload_get_file
Appears in: jetpack.14.6, jetpack.14.7, jetpack.14.8, jetpack.14.9.1, jetpack.15.0, jetpack.15.1, jetpack.15.1.1, jetpack.15.2
Hook Type: filter
See hook in action
Displaying hooks found in version: jetpack.15.2apply_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 ) || ! is_array( $file ) ) { wp_die( esc_html__( 'Error retrieving file content.', 'jetpack' ) ); } // Given $file can be manipulated by a filter, make sure everything is as it should be.