Using hooks with extra parameters

Since

do_action( 'woocommerce_before_single_product_summary' );

doesn’t have any additional input arguments like:

do_action( 'woocommerce_before_single_product_summary', $args1, $args2, $args3 );

then your action callback will always be called without any input arguments.

function my_own_function ()
{
    // ...
}

So you will have to get it by other means: e.g. through functions, classes or by tapping values from other hooks.

But you can surely change the priority:

add_action( 'woocommerce_before_single_product_summary', 'my_own_function', 5 );

If you can modify it, e.g. in your child theme, to:

do_action( 'woocommerce_before_single_product_summary', $args1, $args2, $args3 );

then you can use:

add_action( 'woocommerce_before_single_product_summary', 'my_own_function', 5, 3 );

with the callback as:

function my_own_function ( $args1, $args2, $args3 )
{
    // ... you have now access to $args1, $args2, $args3
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)