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
Hook Type: filter
See hook in action
Displaying hooks found in version: jetpack.15.1.1apply_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'];