Is there anything like admin_notices for front end?

I’m new to WordPress and trying to take advantage of the framework as much as possible. On the front end, I want a centralized message area to display error, success, and general notices similar to how they’re handled via admin_notices on the back end. I’m not seeing a similar hook for the front end.

I guess I’m asking which action should I be hooking into on the front end to mimic admin_notices?

1
1

There is no such action in the front end (in a theme) by default. Simply use a custom action like

do_action( 'theme_notices' );

and hook into this one.

Leave a Comment