wp_upload_bits WordPress Filter Hook

wp_upload_bits is a Wordpress hook that is used to upload files to a WordPress site. This hook is typically used when you need to upload a file to a WordPress site from a remote location.

apply_filters( 'wp_upload_bits', array|string $upload_bits_error ) #

Filters whether to treat the upload bits as an error.


Description

Returning a non-array from the filter will effectively short-circuit preparing the upload bits and return that value instead. An error message should be returned as a string.


Top ↑

Parameters

$upload_bits_error

(array|string)An array of upload bits data, or error message to return.


Top ↑

Source

File: wp-includes/functions.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More