I have a situation where I have a function hooked to more than one custom hooks.
How to check in the callback function which custom hook triggered the call?
Or the question in code will be
add_action('my_test_hook_1','my_test_callback_function');
add_action('my_test_hook_2','my_test_callback_function');
add_action('my_test_hook_3','my_test_callback_function');
add_action('my_test_hook_4','my_test_callback_function');
function my_test_callback_function(){
$called_action_hook = ; //Some magic code that will return current called action the hook
echo "This function is called by action: " . $called_action_hook ;
}