I want to display a notification in editor when user saves a post , when certain criteria are met
You can try the given approach to achieve the desired results. Here is the update code you need to use. /** * This is the action to check a condition before the post is updated. */ add_action( ‘pre_post_update’, ‘check1’, 10, 2 ); function check1( $post_id, $data ) { if (1 == 1) { set_transient(‘1_is_1’ . … Read more