Can you hook a shortcode into an area using functions.php?
Is it possible to hook into a template area and add a shortcode within the functions.php file.
I’m trying to avoid adding the shortcode within the template file.
For example, I’m trying to add a social sharing widget in my single product WooCommerce page.
This would normally be easy with default plugin functionality but I need to use WooCommerce Conditional Content and it duplicates the social sharing block when a new content block is added to a product page.
- The topic ‘Can you hook a shortcode into an area using functions.php?’ is closed to new replies.