Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value

Try using hook on update post meta for post update date. Something like code below, just change the company_title_meta and company_role_meta to your correct meta key. If something does not work, send a comment and I will try to help you add_action( ‘updated_post_meta’, ‘on_post_update_after_post_meta’, 10, 4 ); function on_post_update_after_post_meta( $meta_id, $post_id, $meta_key, $meta_value ) { … Read more

admin_notices show after load completed

Those are not admin notices. It’s not enough to echo text on the admin_notices hook, it needs to be wrapped in specific HTML. Here is an example taken from the official WP doc for admin_notices: function sample_admin_notice__success() { ?> <div class=”notice notice-success is-dismissible”> <p><?php _e( ‘Done!’, ‘sample-text-domain’ ); ?></p> </div> <?php } add_action( ‘admin_notices’, ‘sample_admin_notice__success’ … Read more