Skip to content

Instantly share code, notes, and snippets.

@pickplugins
Last active April 29, 2023 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pickplugins/d6cbdf97eb86d81ab9d4df0edcacb9e1 to your computer and use it in GitHub Desktop.
Save pickplugins/d6cbdf97eb86d81ab9d4df0edcacb9e1 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'] : '';
echo do_shortcode("[wpcbn_btn_archive id='$product_id']");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment