Skip to content

Commit

Permalink
[N/A] Child theme support for ACF Blocks (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget authored Aug 14, 2024
1 parent 62c3db0 commit eb48a91
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,15 @@ public static function get_all_blocks(): array {
* @return array
*/
public static function get_block_locations(): array {
return apply_filters(
'acfbt_block_locations',
[
get_template_directory() . '/blocks',
self::get_custom_blocks_dir(),
]
return array_unique(
apply_filters(
'acfbt_block_locations',
[
get_template_directory() . '/blocks',
get_stylesheet_directory() . '/blocks',
self::get_custom_blocks_dir(),
]
)
);
}

Expand Down

0 comments on commit eb48a91

Please sign in to comment.