Scaffold::check_target_directory( string $target_dir )
Checks that the $target_dir is a child directory of the WP themes or plugins directory, depending on $type.
Description Description
Parameters Parameters
- $type
-
(Required) "theme" or "plugin"
- $target_dir
-
(Required) The theme/plugin directory to check.
Return Return
(null|string) Returns null on success, error message on error.
Source Source
File: cli/src/scaffold.php