iworksolo
Forum Replies Created
-
Forum: Plugins
In reply to: [Private User Notes] Future featuresHi @speakoutenglish,
This thread has been inactive for a while. We are going to mark it as Resolved for now, please feel free to re-open the thread if you have any questions.
Thanks.
Hi @anish12345,
Try Using following code in functions.php to change those
add_filter( 'um_user_permissions_filter', 'my_custom_user_permissions', 10, 2 ); function my_custom_user_permissions( $permissions, $user_id ) { if(isset($permissions['account_status_name']) && $permissions['account_status_name'] == 'Membership Inactive') $permissions['account_status_name'] = 'Account Suspended'; else if(isset($permissions['account_status_name']) && $permissions['account_status_name'] == 'Membership Rejected') $permissions['account_status_name'] = 'Account Rejected'; return $permissions; }Thanks.
- This reply was modified 3 years, 4 months ago by iworksolo.
Forum: Plugins
In reply to: [Private User Notes] Future featuresHi @@speakoutenglish,
Thanks for your reply and these great suggestions. It’s possible to add custom css class in buttons. For example adding following in child theme’s functions.php will add the css class ‘my_custom_css_class’ in buttons. Changing style of this class should give you the adjustment you need.
add_filter('private_user_notes_button_class',function(){ return 'my_custom_css_class'; });To remove the print button add following css in your child theme’s style.php
input[name="edit_private_user_note"] + input[type="button"]{ display:none !important; }Adding following in functions.php will disable the rich editor and should make it a simple text editor.
add_filter('private_user_notes_editor_settings',function(){ $settings = array( 'tinymce' => false, 'media_buttons' => false, 'quicktags' => false ); return $settings; });You can use a plugin like this https://wordpress.org/plugins/insert-headers-and-footers/ to add these codes easily without the need of editing child template if you want.
Again really appreciate the suggestions, I will add some of these options in the plugin setting page at future for ease of use as you suggested.
Thanks.
I want to know too.