validate_file_to_edit Wordpress function


Description:

Make sure that the file that was requested to edit, is allowed to be edited


Syntax:


Arguments:

(string) $file file the users is attempting to edit
(array) $allowed_files Array of allowed files to edit, $file must match an entry exactly


Return Type:

(null)


Define At:

wp-admin/includes/file.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/validate_file_to_edit


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×