Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
June 29, 2021 at 12:26 pm in reply to: Allow sending even if not a member of the receiving group? #43282Shamim HasanKeymaster
What code you have now will allow all users to send message to any group. and except that 3 roles nobody will allowed to send to any group.
If that is ok then you can continue.
Or you can use #43262 code again (i changed a bit there) and remove your last filter.
Let me knowJune 27, 2021 at 8:12 am in reply to: Allow sending even if not a member of the receiving group? #43271Shamim HasanKeymasterCan you please send me all code added for this plugin?
June 24, 2021 at 4:02 pm in reply to: Allow sending even if not a member of the receiving group? #43262Shamim HasanKeymasterPlease change to following
// Allow administrator and manager group to send to other groups add_filter( 'fep_filter_groups_to_send_message', function( $groups ){ if( array_intersect( [ 'administrator', 'administration', 'manager' ], wp_get_current_user()->roles ) ){ return Fep_Group_Message::init()->get_all_groups(); } return $groups; });
Also with your last added code except these 3 roles nobody will be allowed to send a group message.
June 24, 2021 at 12:26 am in reply to: Allow sending even if not a member of the receiving group? #43256Shamim HasanKeymasterSorry for the confusion. Please remove those code and follow https://www.shamimsplugins.com/support/topic/latest-update-breaks-groups/#post-26896 (return conditionally if user in your desire role)
June 23, 2021 at 9:32 pm in reply to: Allow sending even if not a member of the receiving group? #43251Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php.
add_filter( 'fep_get_option', function( $value, $option ){ if( 'can-send-to-group' == $option ){ if( array_intersect( [ 'administrator', 'rolename' ], wp_get_current_user()->roles ) ){ $value = true; } else { $value = false; } } return $value; }, 10, 2 );
after that user with administrator and rolename (you can change to your actual role name) role can send message without being a member.
June 23, 2021 at 3:27 pm in reply to: Allow sending even if not a member of the receiving group? #43246Shamim HasanKeymasterYou can follow https://www.shamimsplugins.com/support/topic/allow-only-admin-to-message-groups/#post-36544
Or if you want to allow multiple user role users to send group message you can follow https://www.shamimsplugins.com/support/topic/question-about-groups-messages/#post-28661 (change roles as you want)Shamim HasanKeymasterShamim HasanKeymaster1. May be other user blocked him or does not want to receive message
2. You can set a larger limit or 0 if no limitsShamim HasanKeymasterShamim HasanKeymasterYou can cancel auto-renew from your account page in https://www.shamimsplugins.com/account/
You will get automatic email 1 month before license expiry to renew manually.Shamim HasanKeymasterdirectory should show user display name in that column. Can you please check if users have their display name? Do you use any custom code for this plugin to change name?
Shamim HasanKeymasterPlease add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){ if ( 'access_directory' != $cap || ! is_user_logged_in() || fep_is_user_blocked() ) { return $can; } if( array_intersect( [ 'administrator', 'editor' ], wp_get_current_user()->roles ) ){ return true; } return false; }, 10, 3);
Shamim HasanKeymasterCurrent version it shows bellow button, in future we will try to show above button.
Shamim HasanKeymasterThank you.
It seems your forms get submitted before we get a response from google with keys.
I need some time to fix this issue.
If you are in a hurry and want a refund let me know. -
AuthorPosts