What do you mean “also” ? It’s the one plugin I’m talking about.
It displays top right corner (see screenshot in my first message) when submitting a message threw after clicking the button displayed by the shortcode. Thanks.
I very well understand that in order to prevent specific user roles to use the tool, we can simply hide it for those roles.
Still, I also need it to work for my roles, and right now it doesn’t.
Indeed it works without login, but: 1. I need it NOT to work without login; 2. I need it to work when logged in with non-admin user roles.
Hi, Just tested again and only works for Admin users. I did check “Allow members to send message to other site members” with no success. Thanks.
P.S. : Also please edit your messages so there is no mention of the name or URL of my site on this page.
Indeed it works now, thank you.
Could you please edit your messages so there is no mention of the name or URL of my site on this page? Thanks.
Hi, Yes this is how I did it
do_shortcode('[pm_to_user id=' . $user->ID . ' label="Lui écrire" title="Ecrire maintenant à ' . $user->display_name . '" color="primary"]')
But it still doesn’t work. Thanks.
Indeed it works with plain shortcode, but I need the shortcode to be dynamically generated.