Tell us what you are trying to do?
I'd like to make multi pages cred form for guest user.
All roles except guest can create posts by cred form as I expected. ( I added add_filter to the function.php as your guide )
Only guest couldn't access the second page.
I set the guest role 'create permission' for 1st page and edit permission for other pages.
But it doesn't work.
How can I control it for guest ?
All roles except guest can create posts by cred form as I expected. ( I added add_filter to the function.php as your guide )
Can you elaborate?
No guide instructs you to use Custom PHP to have CRED Forms working for Guests, by my knowledge.
Instead, you can just put the Form on a Page; anyone will be able to use it.
If you have Access installed, you will need to head to Toolset > Access Control > CRED Forms > Post Forms and enable all capabilities for the guest role.
I'd like to make multi pages cred form for guest user.
Unfortunately, MultiStep CRED forms are not something we do support.
There are custom code solutions, but we cannot debug them deeply, as those are not natively intended to be used.
There are a few Custom Code examples here:
https://toolset.com/forums/topic/save-user-progress/
https://toolset.com/forums/topic/cred-with-multi-process-forms-and-more/#post-335164
https://toolset.com/forums/topic/user-multi-part-form/#post-337000
https://toolset.com/forums/topic/userpostmultiple-forms-on-the-same-page-conditional-display-of-user-fields/#post-402497
But we cannot assist this.
There are feature requests filed, to make it possible, to which I can unfortunately not give any ETA yet.