Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Please go to Front End PM PRO > Settings > Licenses, then empty license field and save changes and again input your license key and again save changes.
Let me know.
Shamim HasanKeymasterYou can use
fep_filter_message_before_send
filter hook to append any information into message body.Shamim HasanKeymasterYou can use following code
add_filter( 'fep_form_fields', function( $fields ){ $fields['cus_key'] = array( 'type' => 'checkbox', 'value' => fep_get_user_option( 'cus_key', 1), 'cb_label' => __("Your Label", 'front-end-pm' ), 'priority' => 35, 'where' => 'settings', ); return $fields; });
Shamim HasanKeymasteradd_action( 'fep_save_announcement', 'send_something', 100, 3 ); function send_something( $announcement_id, $announcement, $update ){ echo '<pre>'; print_r( fep_get_participant_roles( $announcement_id ) ); echo '</pre>'; die; }
Shamim HasanKeymasterfor back-end please use
fep_save_announcement
.
Next update will be a major update of this plugin. Most of the code is changed in this version. Please read https://wordpress.org/support/topic/need-help-for-testing-new-beta-version-10-0-1beta1/ to make your changes compatible with future release.See https://github.com/shamim2883/front-end-pm/tree/1001beta1 for code
Shamim HasanKeymasterYes.
If your domain is example.com then you can create an email address like name@example.com Then set this email as piping email and forward all emails from this email address to php script.Shamim HasanKeymasterYou can use https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_message_to/ . It will show button, clicking that button will redirect you to message page with “To” auto filled.
OR
https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_new_message_form/ . It will show a form and from product page users can send message to product seller.Or if you use any code, you can pass
fep_to=user_nicename
to auto fill “To”Shamim HasanKeymasterYou can use any domain you want. But email must forward to php script as mentioned in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/email-piping/ . So if your piping email is pm@privatemessagedomain.com then from this email forward email to mentioned php script.
Shamim HasanKeymasteruse
[front-end-pm fepaction="announcements"]
in page contentShamim HasanKeymasteradd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_menu_buttons', function( $menu ){ unset( $menu['newmessage'], $menu['message_box'], $menu['settings'], $menu['directory'] ); return $menu; }, 99 );
Shamim HasanKeymasterThank you for being with us.
we cannot delay 10 seconds, it is not possible. We can use cron, but that is full another chapter.A good news is that i am re-designing this plugin. New version will be so much performance improved.
Shamim HasanKeymasterYes.
Add following code in your theme’s (child theme’s if any) functions.phpadd_filter( 'fep_get_option', function( $value, $option ){ if( 'can-send-to-group' == $option ){ if( in_array( 'supervisors', wp_get_current_user()->roles ) ){ $value = true; } else { $value = false; } } return $value; }, 10, 2 );
Change
supervisors
with your supervisors user’s role.Shamim HasanKeymasterIt is recommended not to change any php code in plugin. When you will update plugin you will lose your changes.
Sorry, i do not have any recommendation on that.
Shamim HasanKeymasterYou should not need to change any php code to hide directory for non admin. What php you had changed? i can correct if anything wrong in the plugin for that feature. let me know.
Shamim HasanKeymasterWhen non admin user use “New Message” That is already filled. They do not need to type anything to send message to admin.
-
AuthorPosts