I want to add my own function to an already existing hook. Here is the definition:
do_action( 'woocommerce_before_single_product_summary' );
The original function that uses it looks like so:
add_action(
'woocommerce_before_single_product_summary',
'woocommerce_template_single_title',
5
);
Since I don't want to touch the theme, nor Woocommerce templates, I want to add my own function but with lower priority and some 3 extra parameters like so:
add_action( 'woocommerce_before_single_product_summary', 'my_own_function', 6, 3);
- Is it possible?
- If yes, where are these parameters defined?
- If not,
- Is it possible to use global values instead?
- Is there another solution to my problem?