wp_create_file_in_uploads WordPress Action Hook

The wp_create_file_in_uploads hook is used to create a file in the uploads directory of a WordPress site. This can be useful for creating custom files or for storing data that needs to be available to the site.

do_action( 'wp_create_file_in_uploads', string $file, int $attachment_id ) #

Fires after the header image is set or an error is returned.


Parameters

$file

(string)Path to the file.

$attachment_id

(int)Attachment ID.


Top ↑

Source

File: wp-admin/includes/class-custom-image-header.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.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.