cojennin
Forum Replies Created
-
Forum: Plugins
In reply to: [Edit Flow] It is possible to block a user on editing base on custom statusHello,
There are a few example on the web about how to prevent editing a post while the post meets certain conditions. Adding the following snippet to your functions.php file would prevent posts from being edited by non-admins when the post has the status “pitch”.
function restrict_editing_by_status( $allcaps, $cap, $args ) { if( 'edit_post' != $args[0] && 'delete_post' != $args[0] || !empty( $allcaps['manage_options'] ) // don't restrict if the user can manage options || empty( $allcaps['edit_posts'] ) // the user already can't edit post ) { return $allcaps; } $post = get_post( $args[2] ); // If the post status is pitch if ( $post->post_status === 'pitch' ) { $allcaps[$cap[0]] = false; } return $allcaps; } add_filter( 'user_has_cap', 'restrict_editing_by_status', 10, 3 );
Thanks!
ConnorForum: Plugins
In reply to: [Edit Flow] Showing scheduled posts on editorial calendarThe functionality to support this has been [merged into Edit Flow](https://github.com/Automattic/Edit-Flow/pull/614) and should be included with the next release.
Thanks!
ConnorForum: Plugins
In reply to: [Edit Flow] “Status” column missing in ALL POSTS viewI’ve taken a screenshot of a WordPress installation with no other plugins and the default twenty twenty theme.
Could you please try disabling your other plugins, and if possible reverting to a default theme like twenty twenty and let me know if the post statuses are still hidden?
Can you also provide a screenshot of what you’re seeing?
Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] Issue with Draft Posts on hovering Save ButtonHello,
A new version of Edit Flow (0.9.6) has been released and contains these changes. Let us know if you encounter any issues.
Thanks!
-ConnorForum: Plugins
In reply to: [Edit Flow] Issue with Draft Posts on hovering Save ButtonThanks, this helped! I was able to confirm the issue.
If possible, could you try running the
master
branch of https://github.com/Automattic/Edit-Flow/ and see if that fixes the issue? I’ve just merged a change that I think will fix the problem.Forum: Plugins
In reply to: [Edit Flow] Issue with Draft Posts on hovering Save ButtonHello, thanks for providing this information!
Have you tried activating Edit Flow on a fresh WordPress installation to see if this error still occurs?
If possible, could you provide a screencapture of the error you’re seeing? And also, could you copy the contents of the dev console error and any other messages you’re seeing here?
If you can, adding
define('SCRIPT_DEBUG', true);
towp-config.php
might provide a clearer error message.Forum: Plugins
In reply to: [Edit Flow] Parent Pages in Permalink Twice for Draft PostsJust following up, Edit Flow 0.9.5 has been released with this fix.
Thanks!
-ConnorForum: Plugins
In reply to: [Edit Flow] Parent Pages in Permalink Twice for Draft PostsThis should be fixed in the next version of Edit Flow. If possible, it would be great to have folks test this behavior to confirm it’s been fixed using the master branch on Github. We should have a new version of Edit Flow on www.remarpro.com within a few days.
Edit Flow uses the core
wp_mail
function to send email. Have you checked your spam folder or are you able to provide any logging that would indicate what’s causing this behavior?Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] with use acf not workCould you provide a screenshot or video of the behavior you’re encountering?
Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] Blank section shown if no users selected.Could you provide a screenshot or video of the behaviour you’re encountering?
Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] “Status” column missing in ALL POSTS viewWe removed the status column in favor of showing the statuses next to the post name. This brings it inline with the default WordPress behavior and makes it easier to maintain.
Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] Updating User@j3gaming Could you provide some more information on how you created the custom role? Did you use a plugin or create it using
add_role
? Also, what other plugins do you have active on your site?Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] status edit button disappearingApologies, we’ve been investigating this issue but have so far been unable to reproduce it.
We recently released a new version of Edit Flow, can you update your version and let us know if that resolves the issue? In the meantime, we’ll continue to investigate.
Thanks,
ConnorForum: Plugins
In reply to: [Edit Flow] Preview button not showing recent changes while editingCould you provide some more information about the issue you’re facing?
Are you using Gutenberg or the classic editor? What version of WordPress? And what is the published event? Is that from a plugin you’re using, or a custom post type you’ve created?
Thanks,
Connor