Home › Forums › Front End PM PRO › Who has read the announcement ?
- This topic has 8 replies, 2 voices, and was last updated 4 years, 8 months ago by Shamim Hasan.
- AuthorPosts
- March 21, 2020 at 4:27 pm #35501Jan SørensenParticipant
How can I see who has read the announcement? I want to follow up the receipients.
Is it better to do that with groups ?
Thanks for your follow up.March 22, 2020 at 12:34 pm #35516Shamim HasanKeymasterMarch 22, 2020 at 3:52 pm #35520Jan SørensenParticipantYou are absolutely correct when it comes to messages, either single, multiple or groups. BUT I asked if that read receipt in Announcement
I cannot see those who have read there !?
JanBMarch 23, 2020 at 12:05 am #35533Shamim HasanKeymasterYou can add following code in your theme’s (child theme’s if you are using) functions.php to show in announcement.
add_action( 'init', function(){ add_action( 'fep_display_after_announcement', array( Fep_Read_Receipt::init(), 'display_read_receipt' ), 99 ); });March 31, 2021 at 10:47 pm #42826Jan SørensenParticipantDear Developer.
You helped me with the fantastic code :
add_action( ‘init’, function(){
add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
});is it possible to have this only visible for admin?
Thanks in advanced
JanBApril 1, 2021 at 6:52 pm #42836Shamim HasanKeymasterYes possible. Please use following code
add_action( 'init', function(){ if( fep_is_user_admin() ){ add_action( 'fep_display_after_announcement', array( Fep_Read_Receipt::init(), 'display_read_receipt' ), 99 ); } });April 7, 2021 at 1:32 am #42870Jan SørensenParticipantThis reply has been marked as private.April 8, 2021 at 12:05 am #42880Jan SørensenParticipantDear sir.
The code what I have copied into the function.php is the following:
add_action( ‘init’, function(){
add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
});add_action( ‘init’, function(){
if( fep_is_user_admin() ){
add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
}
});—-
But the problem that I tried to describe is that I want the message : Read …. is ONLY visible for med (admin).
Now it is visible for everyone.Please help.!!
April 8, 2021 at 12:54 am #42885Shamim HasanKeymasterPlease add only https://sp-test1.arogga.co/support/topic/who-has-read-the-announcement/#post-42836 (remove other code)
- AuthorPosts
You need to purchase ‘Front End PM PRO’ to create topic in this support forum.
If you already purchased ‘Front End PM PRO’ please LOGIN.