I am working on a plugin that needs to duplicate some built-in WordPress logic. (This logic can't be invoked with any built-in method, nor can it be hooked into independently.)
During this sequence of actions, WordPress's normal behavior is to call an action hook (
do_action('wp_login', ...)) and a filter hook (
If they're invoked at points in time which correspond to when they would have been invoked in Core, is it safe (and acceptable practice) to invoke these built-in hooks directly from my plugin? Or is the risk too great that other developers who have hooked into this expect the action to be executed at a very specific time?