media_upload_form_url WordPress Action Hook

The media_upload_form_url hook allows you to change the URL of the media upload form. This can be useful if you want to change the form action to a custom URL.

apply_filters( 'media_upload_form_url', string $form_action_url, string $type ) #

Filters the media upload form action URL.


Parameters

$form_action_url

(string)The media upload form action URL.

$type

(string)The type of media. Default 'file'.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.6.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
Show More