Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
You can place this shortcode independent to
[front-end-pm]
shortcode. So you can place this is another page or in another tab. By programmatically setting “to” value i meant you can use this shortcode in php code and before that you can determine who is this users advisor. Like follows//Determine here who is current user's advisor and set his user nicename here. Suppose advisor user of current user is advisor1 $toUserNicename = 'advisor1'; do_shortcode( '[fep_shortcode_new_message_form to="' . $toUserId . '"]' );
Shamim HasanKeymasterThere are couple of ways to achieve that.
In my opinion easiest way is to use https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_new_message_form/ shortcode. You can set programmatically set “to” value so that this goes to directly to that advisor. You can block all “New Message” sending from role to role block but keep reply open for all. So that only way to send message is by this shortcode.October 20, 2021 at 2:08 pm in reply to: [Suggestion] Always display the other person instead of the user itself. #43826Shamim HasanKeymasterShamim HasanKeymasterWhen user open that announcement it automatically marked as read.
Shamim HasanKeymasterYou can keep that way. This plugin now use rest api instead of admin ajax.
Shamim HasanKeymasterDid you tried “Archive” folder?
Shamim HasanKeymasterSo do you want to send imminently or later? What is your setup as cron interval in this plugin’s settings page?
Shamim HasanKeymasterYou can go to Dashboard > Front End PM PRO > Settings > General to hide directory from users
October 12, 2021 at 12:51 am in reply to: Notification emails using fep_send_message function #43780Shamim HasanKeymasterIf you need to send notification email from fep, you can ask that plugin developer about that hook and let me know. I will try to give you some code changes.
Shamim HasanKeymasterin which hook this codes fire? this plugin’s email hook is added using
wp_loaded
hook. So your other plugin should use this hook or any later hookShamim HasanKeymasterNo, Notification email also should be sent.
Shamim HasanKeymasterYou want to send email later? Not when you send message?
How many users you have in recipients of that message?Shamim HasanKeymasterYou can use https://www.shamimsplugins.com/support/topic/question-wp-json-front-end-pm-v1-notification/#post-27140 directly. No changes in code required for 5 minutes
September 25, 2021 at 1:48 pm in reply to: HTML showing in form field subject when click on shortcode button / fep_shortcod #43724Shamim HasanKeymasterAs html is added in title which you do not want, can you add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_form_field_before_output', function( $field, $where ){ if( 'message_title' === $field['key'] ){ $field['posted-value'] = strip_tags( $field['posted-value'] ); } return $field; },10, 2);
Let me know.
September 24, 2021 at 11:29 pm in reply to: what happens when max count of user messages is reached? #43717Shamim HasanKeymasterThis plugin does not auto delete any message as those might have important data.
User has to delete message otherwise they will not receive any new message. -
AuthorPosts