Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pickplugins/c127d5db0669f90e4c198c90a92724ec to your computer and use it in GitHub Desktop.
Save pickplugins/c127d5db0669f90e4c198c90a92724ec to your computer and use it in GitHub Desktop.
add_action('wcps_layout_element_post_title', 'wcps_layout_element_post_title_20200331', 90);
function wcps_layout_element_post_title_20200331($args)
{
$product_id = isset($args['product_id']) ? $args['product_id'] : '';
$elementData = isset($args['elementData']) ? $args['elementData'] : array();
$element_index = isset($args['element_index']) ? $args['element_index'] : '';
$product = new WC_Product($product_id);
?>
<div class="">
<?php
// echo "anyhting"
?>
</div>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment