I want to generate a new message form via php which will be autopopulated with recipient and message title. However, I only want to make it show for a specific user. All other users will not see the form.
I tried the fep_shortcode new_message_form in php but couldn’t display the form. So I tried all the shortcodes in a new page and got the following results:
[fep_shortcode_new_announcement_count] – not displaying
[fep_shortcode_new_message_count] – not displaying
[fep_shortcode new_message_form] – not displaying
[front-end-pm] – working ok
[fep_shortcode_message_to] – working ok
As you not supplying any “to” argument with this shortcode, by default this will send message to page author where you added this shortcode.
Please not that if you are not logged in or same as “to” user, no form will show. So if you are that page author no form will show. Try create a test user account and log in with that account to see the form in action.