Skip to content

Commit

Permalink
Closes adampatterson/Axe#79 passing $data or $block becomes available…
Browse files Browse the repository at this point in the history
… to the included file
  • Loading branch information
adampatterson committed Jan 28, 2024
1 parent 0206c3b commit ceb0ab9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit ceb0ab9

Please sign in to comment.