Answer the question
In order to leave comments, you need to log in
Is it correct to connect functions for redirect in wordpress?
Hello! I'm trying to write a personal account plugin in WordPress, when the user logs in, I want to redirect to the main one, but naturally it gives an error that the headers have already been sent. I hung up the authorization function with a redirect to add_action( 'wp_head' , 'func' ) and add_action( 'init' , 'func' ) but it doesn't help, to be more precise, I just don't understand how to implement it. It only helped to make a function shortcode and insert it in the theme, in the header.php file at the very beginning. Can you please tell me how these things are done correctly in practice?
Answer the question
In order to leave comments, you need to log in
Try this template_redirect hook https://codex.wordpress.org/Plugin_API/Action_Refe...
There is a hidden div with the described animation, by clicking it the cursor coordinates are set, the divs are shown and the animation starts at the end of which it becomes invisible again.
I honestly do not quite understand you? do you need to make a gif or implement it via javascript?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question