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.


Top ↑

Return Return

(null|string) Returns null on success, error message on error.


Top ↑

Source Source

File: cli/src/scaffold.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.