Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
The only way to hide “Refunds” button from order edit form is to change HTML page CSS via JavaScript. Add code below to the active theme functions.php file or setup it as a must-use plugin. It is executed for the ‘orders-manager’ role only. Replace it with you own role ID.
add_action('admin_head', 'hide_wc_refund_button'); function hide_wc_refund_button() { global $post; if (!current_user_can('orders-manager')) { return; } if (strpos($_SERVER['REQUEST_URI'], 'post.php?post=') === false) { return; } if (empty($post) || $post->post_type != 'shop_order') { return; } ?> <script> jQuery().ready(function () { jQuery('.refund-items').hide(); }); </script> <?php }13/09/2016 at 02:35 in reply to: Limit user's editing rights to other specific cobtributors only #2725Vladimir
KeymasterHi,
Yes, it’s possible. Input ‘Authors user ID’ list for the teacher instead of posts ID list. Use “with author user ID (comma separated)” field for that.
Vladimir
KeymasterHi,
Thanks for letting me know.
Vladimir
KeymasterHi,
It could be suitable for admin to manage it this way. Thanks for the right direction.09/09/2016 at 17:56 in reply to: Restrict access/view of admin notifications for custom user role #2718Vladimir
KeymasterHi,
I have a recipe how to make it as an additional option to the role. It’s possible to convert the functional part to the must-use plugin for any subsite of your network.
Vladimir
KeymasterHi,
Check the browser JavaScript console for the error messages.
05/09/2016 at 06:35 in reply to: How to disable the Text Editor? – just Visuell Editor should be displayed #2711Vladimir
KeymasterIf you wish to have more control it’s possible to integrate this code snippet with User Role Editor as the additional options for role:
add_filter('ure_role_additional_options', 'add_visual_editor_only_option', 10, 1); function add_visual_editor_only_option() { $item = URE_Role_Additional_Options::create_item('visual_editor_only', esc_html__('Visual Editor Only', 'user-role-editor'), 'admin_init', 'ure_remove_text_editor'); $items[$item->id] = $item; return $items; } function ure_remove_text_editor() { add_filter('wp_editor_settings', 'ure_editor_settings'); add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') ); } function ure_editor_settings($settings) { if (!current_user_can('administrator')) { $settings['quicktags'] = false; } return $settings; }05/09/2016 at 06:19 in reply to: How to disable the Text Editor? – just Visuell Editor should be displayed #2710Vladimir
KeymasterYou made all correctly except one thing: add as a 1st separate line to the file editor.php the tag
<?phpIt will show to PHP interpretator where a PHP code starts.
05/09/2016 at 05:00 in reply to: How to disable the Text Editor? – just Visuell Editor should be displayed #2708Vladimir
KeymasterHi Karl,
Add this code to your active theme functions.php file or setup it as must use plugin:
function my_editor_settings($settings) { if (!current_user_can('administrator')) { $settings['quicktags'] = false; } return $settings; } add_filter('wp_editor_settings', 'my_editor_settings'); add_filter('wp_default_editor', create_function('', 'return "tinymce";'));Vladimir
KeymasterHi Wolfgang,
Look at the “Settings->User Role Editor->Additional Modules” tab. If this option “Activate “Create” capability for posts/pages/custom post types” is turned ON, role should have ‘create_events’ capability to have permission to add new events.
03/09/2016 at 16:29 in reply to: 4.26.1 breaks "Select a category" with Download Monitor plugin #2703Vladimir
KeymasterGood. Thanks again.
03/09/2016 at 16:00 in reply to: 4.26.1 breaks "Select a category" with Download Monitor plugin #2701Vladimir
KeymasterThanks. Classic situation when fixing one bug I introduced another one :). It was fixed with the development version 4.28.2.b5
Could you try it?Vladimir
KeymasterHi Thorsten,
This issue was resolved with upcoming version 4.28.2.
Development version 4.28.2.b3. is available for testing from the same Download page (after login).Vladimir
KeymasterExcellent. I plan to publish this update next week.
01/09/2016 at 03:26 in reply to: Need both Admins and Editors to have access to "unfiltered_html" capabilities… #2695Vladimir
KeymasterTested: It works at my development environment.
With active ‘Enable “unfiltered_html” capability’ option in mind open “Users->User Role Editor”, select “Editor” role and select “Deprecated” group of capabilities and check if “unfiltered_html” capability is really included into the “editor” role.
-
AuthorPosts