Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
By default every user query for new message every 2 minutes. You can change this value and use a larger number. Please follow https://www.shamimsplugins.com/support/topic/question-wp-json-front-end-pm-v1-notification/#post-27140
(Wait 24 hours to see the reduced request number)
For email you mean stop sending email when they receive a message in website?
Shamim HasanKeymasterThis should not be that complicated. But will require many code.
Thank you for your nice suggestion. I have added it to our to-do list. May be in future we will add this as core feature of this plugin.
If you need it now you can contact me using https://www.shamimsplugins.com/hire/Shamim HasanKeymasterYou can achieve this my running a cron job and query messages using
FEP_Message_Querywhich is created more than x years ago. Then archive those messages.Shamim HasanKeymasterCurrently it is not possible.
August 30, 2021 at 10:41 am in reply to: Display Name – Show First name and last name initial #43595Shamim HasanKeymasterYou can use
fep_filter_user_namehook to change name as you likeShamim HasanKeymasterHow you are sending post title to message title for now?
Shamim HasanKeymasterBy default it is not possible but this plugin has hook which we can use to achieve this feature. It require custom code.
Shamim HasanKeymasterYou can set to load only in message page in Front End PM PRO > Settings > Appearance
Shamim HasanKeymasterWe have a shortcode for that to easily integrate. Please see https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_message_to/
August 20, 2021 at 10:31 pm in reply to: Possible to check if current user and post author have exchanged messages? #43553Shamim HasanKeymasterYou can use directly
FEP_Message_Queryclass and passparticipant_queryarray for both users. From the result you can determine if both have any messages between them.Shamim HasanKeymasterPlease follow https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/only-admin/
Don’t hesitated to contact me if you have any more questions.
Shamim HasanKeymasterYou can easily create your own tag with your desire content. Please follow https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/add-own-email-tag/
Shamim HasanKeymasterTry following
add_filter( 'fep_filter_user_name', function( $name, $id ){ $authordata = get_userdata( fep_get_message_field( 'mgs_author' ) ); if( $name && $authordata && $authordata->roles && in_array( 'employer', $authordata->roles ) ){ $name = '<a href="/jobs/'. fep_get_userdata( $id, 'user_nicename', 'id' ) . '/" target="_blank" rel="noreferrer noopener">' . $name . '</a>'; } return $name; }, 10, 2);Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if you are using) functions.php
add_action( 'init', function(){ global $wp_embed; remove_filter( 'fep_get_the_content', array( $wp_embed, 'run_shortcode' ), 8 ); remove_filter( 'fep_get_the_content', array( $wp_embed, 'autoembed'), 8 ); });Let me know.
August 15, 2021 at 12:24 pm in reply to: Show the words “You” rather than logged in user name #43503Shamim HasanKeymasterYou can try following code
add_filter( 'fep_filter_user_name', function( $name, $id ){ if ( ! empty( $_GET['fepaction'] ) && $name && $id == get_current_user_id() ) { $name .= " (You)"; } return $name; }, 10, 2);Let me know.
-
AuthorPosts