Add custom post notice after post delete
I am trying to add a custom info notice after the post has been deleted from the trash, but I’m not having any luck with it add_action( ‘delete_post’, ‘show_admin_notice’ ); /** * Show admin notice after post delete * * @since 1.0.0. */ function show_admin_notice(){ add_action( ‘admin_notices’, ‘show_post_order_info’ ); } /** * Display notice when … Read more