Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
August 20, 2021 at 10:31 pm in reply to: Possible to check if current user and post author have exchanged messages? #43553Shamim HasanKeymaster
You 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.
Shamim HasanKeymasterSorry, currently it is not possible.
You can see it in front-end if require.Shamim HasanKeymasterAs this plugin use separate plugin and query system, it should not impacted by other plugins.
Also it totally depends on hosting. If you have good server it can go well above that counts.Shamim HasanKeymasteryou can use .not (https://developer.mozilla.org/en-US/docs/Web/CSS/:not)
Shamim HasanKeymasterYes, possible.
You can follow https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/group-messaging/Shamim HasanKeymasteruse
first_last_nameinstead ofdisplay_nameShamim HasanKeymasterIt is possible but needs php knowledge.
You can get an idea from https://www.shamimsplugins.com/support/topic/how-to-search-messages-by-username/#post-41820Shamim HasanKeymasterWhich shortcode you are using?
It seems useruser_nicenameis not passing properly. Can you please check your code if you passinguser_nicename?Shamim HasanKeymasterFor this type of code you can contact me using https://www.shamimsplugins.com/hire/.
Shamim HasanKeymasterIt is always there?
Can you provide me access to your website so that i can test? If yes provide credentials using https://www.shamimsplugins.com/sensitive-information/ -
AuthorPosts