jetpack_unauth_file_download_available

jetpack_unauth_file_download_available

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.6

apply_filters('jetpack_unauth_file_download_available') is found 1 times:

  • /unauth-file-upload.php line 49
    	 * @param array $data The script data.
    	 */
    	$blocks_variation = apply_filters( 'jetpack_blocks_variation', \Automattic\Jetpack\Constants::get_constant( 'JETPACK_BLOCKS_VARIATION' ) );
    
    	if ( apply_filters( 'jetpack_unauth_file_download_available', $blocks_variation !== 'beta' ) ) {
    		wp_die( esc_html__( 'File download is not available.', 'jetpack' ) );
    	}
    
    	if ( ! current_user_can( 'edit_pages' ) ) {
    		wp_die( esc_html__( 'Sorry, you are not allowed to access this page.', 'jetpack' ) );
    	}