Hot answers tagged


Here is nicely described what and when is loading and why. I recommend also this awesome plugin Query Monitor that helped me also to fix performance issues. in short: muplugins_loaded registered_taxonomy registered_post_type plugins_loaded sanitize_comment_cookies setup_theme unload_textdomain load_textdomain after_setup_theme auth_cookie_malformed ...


You can use the is_admin() function to check: add_action( 'init', 'hekim_sticky_header' ); function hekim_sticky_header() { if ( is_admin() ) { return; } // Rest of your function goes here. }

Only top voted, non community-wiki answers of a minimum length are eligible