From ceb0ab9d9e16cb16fde6c9e4d24adf0b09cc5070 Mon Sep 17 00:00:00 2001 From: Adam Patterson Date: Sun, 28 Jan 2024 14:29:33 -0700 Subject: [PATCH] Closes adampatterson/Axe#79 passing $data or $block becomes available to the included file --- src/Helpers.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Helpers.php b/src/Helpers.php index d0bb2d1..ef3fd79 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -188,16 +188,17 @@ function get_cat_hierarchy($parent, $args) } /** - * @param $slug - * @param null $name - * @param null $data + * @param $slug + * @param $name + * @param $data + * @param $block * * Allows the pass through of data to template partials. * */ if (!function_exists('get_acf_part')) { - function get_acf_part($slug, $name = null) + function get_acf_part($slug, $name = null, $data = null, $block = null) { include(get_template_part_acf($slug, $name)); } @@ -413,7 +414,7 @@ function show_woo_single_product() * * @return bool|string * - * Returns an HTML link including the logo, Or just the path the the logo image. + * Returns an HTML link including the logo, Or just the path to the logo image. */ function get_the_logo($include_link = false, $custom_logo_css = 'site-logo custom-logo img-fluid',