upload_post_params WordPress Filter Hook

The upload_post_params hook is used to filter the parameters that are used when a user uploads a post to a WordPress site. This hook allows you to modify the parameters that are used by the WordPress uploader, which can be useful when you need to change the way that WordPress handles uploads.

apply_filters( 'upload_post_params', array $post_params ) #

Filters the media upload post parameters.


Parameters

$post_params

(array)An array of media upload parameters used by Plupload.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.3.0
3.1.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