Core Function
View Source on Trac ↗ wp_edit_theme_plugin_file()
wp_edit_theme_plugin_file( mixed $args ) Attempts to edit a file for a theme or plugin.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string[] | $args { Args. Note that all of the arg values are already unslashed. They are, however, coming straight from `$_POST` and are not validated or sanitized in any way. Required |
Return Value
((true)
| WP_Error) True on success or `WP_Error` on failure.
Function Information
Since Version
4.9.0
Source File
wp-admin/includes/file.php
Advertisement