Forum Replies Created
-
AuthorPosts
-
11/03/2020 at 01:54 in reply to: Migration of plugin and user roles on from a test to live site. #6695
Vladimir
KeymasterIf you familiar with SQL and the tools like phpMyAdmin, it’s possible to export/import all user roles with less efforts. Suppose the database prefix is ‘wp_’.
1) Find the WordPress db record with user roles:SELECT * FROM wp_options WHERE option_name='wp_user_roles';2) Update all user roles at once:
UPDATE wp_options SET option_value='changed value here' WHERE option_id=NN LIMIT 1;This post explains in details how and where WordPress stores user roles data.
Do you use any URE Pro additional modules at the test site?
Vladimir
KeymasterCan I check the example at your site/stage/dev copy? If that’s applicable, send URL, admin credentials and example details (CPT, category, role) to support [at-sign] role-editor.com
Vladimir
KeymasterDoes post have a single category and/or user – single role? We have to take into account settings made for another categories and/or roles.
Vladimir
KeymasterIn order to exclude restricted post from the search results you have to select the action “Show HTTP 404 error”. This option excludes restricted post from all listings.
If ‘Show access error message’ is selected, post is shown at the search results, only its content is replaced with access error message.10/03/2020 at 12:23 in reply to: Migration of plugin and user roles on from a test to live site. #6688Vladimir
KeymasterHi Andrija,
If you have not too much user roles you can use ‘Export/Import’ buttons to make this role by role. ‘Export’ button write currently selected role to the local file. ‘Import’ button imports role data from the selected file (previously exported).
This will resolve your task if you don’t care about data set for/by URE additional modules.
Vladimir
KeymasterThanks for the good suggestion for further development. It’s impossible with current user interface though.
I added custom filter ure_show_front_end_menu_item as a quick workaround. You may check any condition inside custom code hooked to it and hide menu item via it. Mentioned filter was added to beta version 4.51.b2. It’s available from the download page.Vladimir
KeymasterHi,
Did you try “Admin menu blocking” add-on?
Vladimir
KeymasterHi,
It’s not possible within WordPress built-in page editing logic. Special plugin is needed for this purpose.
Vladimir
KeymasterBeta version 4.55.1.b1 is available after login at the ‘Download’ page.
Related updates:
New: Content view access add-on:
– ‘ure_content_view_access_data_for_role’ custom filter was added. It takes 2 parameters: 1st – array with content view access data defined for a role, $role_id – role ID, for which content view access data is filtered.
– ‘ure_content_view_access_data_for_user’ custom filter was added. It takes 2 parameters: 1st – array with content view access data defined for a user, $user_id – user ID, for which content view access data is filtered.Try to use new filters in your code.
Vladimir
KeymasterIf you can extract needed post/page IDs for a team via PHP, you can add them automatically to the edit restrictions set for selected user or role using ure_edit_posts_access_id_list custom filter.
Vladimir
KeymasterHi Martin,
Send the link to WP Multilang plugin at wordpress.org/plugins/
Show screenshot with “Show item only in” option in menu.
Clarify, what do you mean under ‘other page where i don’t use “User role editor”’. How do you use URE for the page?Vladimir
KeymasterHi Friedi,
You can make a simple test – switch to a 2020 theme, login under user with modified editor role and look if you can work normally with widgets. If ‘Yes’, then permissions you gave to editor role is enough for this purpose. But Avada developer should check what is going wrong and find a real reason of JavaScript error.
Vladimir
KeymasterHi Daniel,
Look at the browser JavaScript console (F12 for Google Chrome) if it shows any JavaScript errors.
Vladimir
KeymasterYes, I confirm this.
Vladimir
KeymasterHi,
Currently there is not suitable hook for this purpose. I will add a couple for the next update – approximately the begin of March, 2020.
-
AuthorPosts