jamiechong
Forum Replies Created
-
Forum: Plugins
In reply to: [Revisionize] Programmatically create a revisionI haven’t done any testing with this, but you can try something like:
Revisionize\create_revision($post, true);
I suspect there will likely be problems however.
Forum: Plugins
In reply to: [Revisionize] Revision of a draft is not listed under originalIf you can provide a specific set of steps for me to reproduce your issue, I can attempt to identify the problem.
Forum: Plugins
In reply to: [Revisionize] Add Donate Button to Plugin Directory ListingThanks for the kind words, @heyjoecampbell.
I’ll look into it ??
You can also support the plugin by purchasing addons at https://revisionize.pro/
Forum: Plugins
In reply to: [Revisionize] Preview not workingI can’t seem to reproduce your issue.
If you suspect it’s your theme, try deactivating it and testing with a different theme (like one of the stock twenty*** themes).
Let me know what you find.
Forum: Plugins
In reply to: [Revisionize] Drafts Show in Dashboard WidgetI can’t reproduce your issue.
The steps I’m taking are:
1. Revisionize a post
2. Make some changes to the content
3. Click “Save Draft”The Dashboard widget that shows “Revisionized Posts Needing Review” is empty
Please tell me exactly how you’re seeing this issue.
Forum: Plugins
In reply to: [Revisionize] Revise from draft or published postReally sorry for the late reply. Didn’t see this one come in.
I’d suggest your workflow be to always Revisionize the published post. The draft you see after you publish the revision is the old version of the page. If you don’t want to keep these uncheck the “Keep Backup” checkbox in Revisionize settings.
Forum: Plugins
In reply to: [Revisionize] Compare Revision with Published PageHmm, interesting feature. I agree it’d be a cool to have this. Will add it to my list, but unfortunately can’t investigate it for another few weeks at least.
Forum: Plugins
In reply to: [Revisionize] Revision of a draft is not listed under originalHow were you able to revisionize a Draft? It shouldn’t be possible.
I found a solution. You can add a manual exclude with this filter
ai1wm_exclude_content_from_export
Add this to functions.php of your active theme.
add_filter('ai1wm_exclude_content_from_export', function($exclude_filters) { $exclude_filters[] = 'themes/<YOUR-THEME-NAME>/node_modules'; return $exclude_filters; });
Forum: Plugins
In reply to: [Revisionize] Limit Revisionize to Post ID@shyzer – sorry for the late reply. You can try using this filter:
revisionize_is_create_enabled
This might work:
function can_my_contributor_edit($is_enabled, $post) { return $is_enabled && in_array($post->ID, array(123, 456, 789)); // specific post IDs } add_filter('revisionize_is_create_enabled', 'can_my_contributor_edit', 100, 2);
Forum: Plugins
In reply to: [Revisionize] Custom Permalink Not Used On Revised Post / Mark OriginalI’m not following. The revision that is created is a clone of the original, it doesn’t get its own URL because it’s in DRAFT mode. When you publish the revision, it copies its contents back onto the original, which would continue to use whatever slug is configured for it. You cannot edit/modify/revisionize the slug if that’s what you’re trying to do.
I’m not sure about the “Original” tag not being shown. If you’re revised and published the same post multiple times, it could be that the original original is no longer around (trash maybe?). Without seeing your database, I can’t say for certain.
Forum: Plugins
In reply to: [Revisionize] Custom User Role and CPTWho are you logged in as? A franchisee?
If so, You need to “revisionize” first. Then on the revision you can submit for review.
Forum: Plugins
In reply to: [Revisionize] Custom User Role and CPTThe Addon is meant for Contributors (it’s called Contributors Can, not Franchisees Can). I haven’t tested with custom roles. You can also try this, but I can’t guarantee it’ll work.
add_filter('revisionize_user_can_revisionize', function($can) { return $can || current_user_can('edit_locations'); }, 20, 1); add_filter('revisionize_is_create_enabled', function($can, $post) { return $can || ($post->post_status == 'publish' && !\Revisionize\get_revision_of($post) && $post->post_type == 'locations' && current_user_can('edit_locations')); }, 20, 2); add_filter('revisionize_user_can_publish_revision', function($can) { return $can || current_user_can('publish_locations'); }, 20, 1);
- This reply was modified 6 years, 4 months ago by jamiechong.
Forum: Plugins
In reply to: [Revisionize] Custom User Role and CPTI’m using the code you provided to create the Locations CPT, I’m using URE and created a new role, but I’m not seeing the same capability options for the Location CPT as you. This is what I see.
https://www.dropbox.com/s/zpsf1l9g3fj8knl/Screenshot%202018-07-11%2009.26.26.png?dl=0
What other code do you have that I’m not seeing?
Forum: Plugins
In reply to: [Revisionize] Custom User Role and CPTThen show me how your role is configured. I need all the infoz dude.