Метод | Описание | |
---|---|---|
_s ( $args, $assoc_args ) | Generate starter code for a theme based on _s. | |
child_theme ( $args, $assoc_args ) | Generate child theme based on an existing theme. | |
plugin ( $args, $assoc_args ) | Generate starter code for a plugin. | |
plugin_tests ( $args, $assoc_args ) | Generate files needed for running PHPUnit tests in a plugin. | |
post_type ( $args, $assoc_args ) | Generate PHP code for registering a custom post type. | |
taxonomy ( $args, $assoc_args ) | Generate PHP code for registering a custom taxonomy. | |
theme_tests ( $args, $assoc_args ) | Generate files needed for running PHPUnit tests in a theme. |
Метод | Описание | |
---|---|---|
extract_args ( $assoc_args, $defaults ) | ||
maybe_create_plugins_dir ( ) | Create the plugins directory if it doesn't already exist | |
maybe_create_themes_dir ( ) | Create the themes directory if it doesn't already exist | |
quote_comma_list_elements ( $comma_list ) |
Метод | Описание | |
---|---|---|
_scaffold ( $slug, $assoc_args, $defaults, $subdir, $templates ) | ||
create_files ( $files_and_contents, $force ) | ||
get_output_path ( $assoc_args, $subdir ) | ||
get_textdomain ( $textdomain, $args ) | If you're writing your files to your theme directory your textdomain also needs to be the same as your theme. | |
init_wp_filesystem ( ) | Initialize WP Filesystem | |
log_whether_files_written ( $files_written, $skip_message, $success_message ) | ||
pluralize ( $word ) | ||
prompt_if_files_will_be_overwritten ( $filename, $force ) | ||
scaffold_plugin_theme_tests ( $args, $assoc_args, $type ) |