quasiDigi
Forum Replies Created
-
Ok, we found the solution. We were not registering well the styles of our custom blocks
We’re having the same problem, and it seems like a lot of people are having it.
Is there any update on this situation?Hello,
So, like I try to explain.
I have used your plugin to make some user roles with custom capabilities. Mainly, each role has only access to one specific custom post type.
Later, I decided to use the wp function
add_role()
to make those roles.So, before doing that, I used the reset button in the backup section of the plugin, deactivated the plugin, and deleted if from my wp install.
Then, I have created those roles, but those roles do only have access to the media library in the backend.
I checked the capabilities with the wp function
get_role( 'role_name' )->capabilities
and those were correct.Finally, I decided to check again with your plugin because of the visual interface that is very convenient.
After activating the plugin, without doing anything, the roles work. When I disable the plugin, they do not work anymore.
At the moment, the roles work, I have made them manually, but need to have the plugin activated for their capabilities to function.
Thanks!
Yes, please.
As I explained:
I have used your plugin and reset the roles by using the button in your backup section.
I have then deleted the plugin.
Now, when I create a new role with add_role(), the role has no capability. Although, I have created it with some. When I install again your plugin and activate it, the capabilities work.- This reply was modified 3 years, 4 months ago by quasiDigi.
It’s not totally different. You’re plugin blocks wpml editing capabilities that are working with add_role().
Also, I have used your method to reset the user roles, but I still need the plugin to be able to use new roles (created with add_role() ).
And, I do not seem to find the option to change the review.
I probably did not explained myself well due to the frustration.
What happened:
I need some extra roles for a theme I am in the making. Looking for a fast solution I check your plugin. I create a few roles who have only access to some custom post types. Sadly enough, those roles can not create and edit wpml translations, except if I buy the pro version. – fair enough –
Now I reset the roles to the default roles and add new roles with the wordpress add_role() function. And here I see that, even while checking their capacities, those roles have the correct ones, they have only access to the media library.
When I install again the plugin and activate it, the roles I’ve created through php work.
- This reply was modified 3 years, 5 months ago by quasiDigi.
Thank you for your commitment! ??
Update:
I’ve re-installed my dev environment. This time with create-guten-block and it works smoothly. Exactly the same code! ??So, I probably did some mistake in my setup. I’m still wondering why the blocks were working on pages and posts but not on custom posts….
@mrtom414
Thanks for your suggestion but when I trywp.blocks.editor
the error is also in pages and posts. Withwp.blockEditor
, the error is only there for the custom post type.
For this reason I think the problem might be in how I registered the custom post type.Hello @hardeepasrani
Thank you for the return. Please keep me posted on that matter. In meanwhile I will disable the Default Section Block.
Have a nice day/night ??
Forum: Developing with WordPress
In reply to: Add a comment while publishing a post@bcworkz
Thank you, I will do some tests!Forum: Developing with WordPress
In reply to: Revisions for only Saved changesOk, thank you. Although I can see the custom fields changes in the revisions.
But nevertheless, is there a way to disable auto-save while keeping the revisions from the posts that have been updated?
///// EDIT:
I did a little search with the rephrased version of my question and found this article that seems to answer my needs: https://www.collectiveray.com/wordpress-autosaveHere is the script I used from that article:
add_action( 'admin_init', 'disable_autosave' ); function disable_autosave() { wp_deregister_script( 'autosave' ); }
Forum: Developing with WordPress
In reply to: Revisions for only Saved changesThank you for your responses.
Let me explain my specific need:
Lets say that I make a cms for a shop. For them, I make a custom post type named client. There is no editor in the client ctp, only custom fields.
All workers in the shops have a wp user.
I want users to be able to edit a client on each visit. For example, when they change from preferred payment method.
At the same time, their supervisor (another user) needs to be able to see the history the changes to the client, without the auto-saves. The supervisor needs to be able to see the change, the time of the change, and the user that made the change.
The shop also wants to keep all changes. So, I thought that it would be convenient to disable auto-saving, keeping actual changes.Thanks!
One last question: I assume those changes I make in the plugin will be overwritten on my next update. I can’t find a way to make a “child” plugin. Could you please point me to some article explaining how to do it, if you know of one, of course.
I hope you enjoyed you’re days off ??
Thank you for your answer!
- This reply was modified 3 years, 9 months ago by quasiDigi.