Created
January 11, 2024 12:55
-
-
Save MarkKevin08/df71ff196a3082c023873bbf8f5b141f to your computer and use it in GitHub Desktop.
XT Quick View - Use dynamic product ID - Extend shortcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function xt_qv_shortcode_extension() { | |
global $product; | |
$id = $product->get_id(); | |
return do_shortcode( '[xt_wooqv_trigger id="' . $id . '"]'); | |
} | |
add_shortcode( 'my_new_shortcode', 'xt_qv_shortcode_extension' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment