move_dir


move_dir ( $from, $to )

Parameters:
  • (string) from Source directory.
  • (string) to Destination directory.
Returns:
  • (true|WP_Error) True on success, WP_Error on failure.
Defined at:

Description

Moves a directory from one location to another via the rename() PHP function.If the renaming failed, falls back to copy_dir(). Assumes that WP_Filesystem() has already been called and setup.

Related Functions

remove_filter, copy_dir, remove_role, remove_action, remove_editor_styles

Top Google Results

User discussions

wpseek mobile