This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Tagged: CRED plugin
When at a URL like
, where 117 is a CRED form, running
Please use the WP_Screen class for CRED in wp-admin.
Having to code around this (see screenshot), I noticed post, post_ID, and post_id all had to be checked. It felt cluttered/inefficient. Maybe could clean that up too, please.
Again, using WP_Screen should make much of this code unnecessary.
Hello. Thank you for contacting the Toolset support.
Well - could you please share file path for the code your shared and I will share your concern with our Devs.
Ok Beda contacted me with more information on that. I recognize now the screenshot you shared for the code is not part of Toolset but you wrote that custom code and as per our support policy, we do not entertain any custom programming needs.
Your point could be valid but I checked with one of our Dev and get_current_screen() is just works fine when he try to edit the Toolset form on backend (admin). Dev tested with PHP version 7.2.2 - could you please tell us what PHP version you are using?
Could you please send me debug information that will help us to investigate your issue.
No debug information is needed. This is just asking to conform to WordPress' best practices. Please share with the developers.
Yes - thank you. I will share this with our Devs.
OK, thank you.
Your welcome - please feel free to close the ticket.