wp_delete_file_from_directory


wp_delete_file_from_directory ( $file, $directory )

Parameters:
  • (string) file Absolute path to the file to delete.
  • (string) directory Absolute path to a directory.
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Deletes a file if its path is within the given directory.

Related Functions

_wp_filter_font_directory, wp_delete_file, wp_delete_category, wp_delete_comment, _wp_get_image_size_from_meta

Top Google Results

User discussions

wpseek mobile