Skip to content

Commit

Permalink
Add 'area' key to function doc for gutenberg_get_block_templates (#…
Browse files Browse the repository at this point in the history
…32746)

* add docblock line for area

* specify its only for template parts

* Update lib/full-site-editing/block-templates.php

Co-authored-by: Ari Stathopoulos <[email protected]>

Co-authored-by: Ari Stathopoulos <[email protected]>
  • Loading branch information
Addison-Stavlo and aristath authored Jun 17, 2021
1 parent 257ba1e commit 36af412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/full-site-editing/block-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ function _gutenberg_build_template_result_from_post( $post ) {
* Optional. Arguments to retrieve templates.
*
* @type array $slug__in List of slugs to include.
* @type int $wp_id Post ID of customized template.
* @type int $wp_id Post ID of customized template.
* @type string $area A 'wp_template_part_area' taxonomy value to filter by (for wp_template_part template type only).
* }
* @param array $template_type wp_template or wp_template_part.
*
Expand Down

0 comments on commit 36af412

Please sign in to comment.