In my setup in Function.php some guy helped me with the code for se who have read the messsage (and annomcement).
This info is not want to show to all users. Today everyone will see this info.
I want so that only admin will see these info.
I am sure there is too much of the code. Can anyone help?
Here is my code today
—-
add_action( ‘init’, function(){
add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
});
add_filter( ‘wpv_filter_user_query’, ‘sort_by_lastname_func’, 100, 3 );
add_filter( ‘fep_filter_message_toggle_feature’, ‘__return_false’ );
add_action( ‘init’, function(){
if( fep_is_user_admin() ){
add_action( ‘fep_display_after_announcement’, array( Fep_Read_Receipt::init(), ‘display_read_receipt’ ), 99 );
}
});
—-