Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
You 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_name
instead ofdisplay_name
Shamim 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_nicename
is 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/Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_user_name', function( $name, $id ){ if ( $name && $id == get_current_user_id() ) { $name .= " (You)"; } return $name; }, 10, 2);
Shamim HasanKeymasterThank you for your nice suggestion, I will try to add this in future release.
-
AuthorPosts