I would like the status of the post which serves as a profile for the professional to be linked to the role of the user/professional (i.e. the author of the post).
More precisely I would like that when the role of the user (professional) account changes to 'subscriber' then the status of the post (the profile) of which he is the author changes from 'published' to 'pending' or 'draft'.
Hello. Thank you for contacting the Toolset support.
I would like to know first here at what action the role of the user from one role to another role will be changed? Is it a automatic process or it will be changed manfully or how exactly or you are using third party plugin that will change the role?
I'm thinking of a manual action by an administrator from the WordPress admin interface.
The site administrator decides that a user no longer has the right to see his profile published on the site.
Rather than simply deleting the user, he could change his role and bring him back to 'subscriber'. The corresponding profile post would then change from 'published' to 'draft' or 'pending'.