Hi!
until recently I received a list of access-groups using the following code:
global $wpdb;
$query = "SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = '_wpcf_access_group'";
$groups = $wpdb->get_results( $query );
recently this code only receives old groups that have been added a long time, the new added groups do not receive this code,
instead of several new groups, this code receive one is unusual:
{ ["meta_value"]=> string(50) "wpcf-custom-group-7318b1bc8403a58f10e1f9b9fddf6b9d" }
how do I programmatically get a list of ALL the access-groups?
p.s. access version 2.3.1 (newer versions can not be used due to errors described in other my tickets).
thank you!
Hello, let me ask my 2nd tier support team if there is a good way to get a list of all Access groups in version 2.3.1. There's no public API available, but they may be able to provide additional advice. Please stand by and I will update you when I have more to share.
Sorry, our 2nd tier team has been unable to provide a suggestion that will help you query for all the Access groups in the database. There is currently a feature request filed to create a public API for this purpose, but as of today that request has not yet been implemented.
This ticket discusses a few Access group conditional approaches that may help you instead:
https://toolset.com/forums/topic/important-need-senior-level-assistance/
I'll keep you posted here as I hear more about the feature request, but I do not have a timeline available for implementation yet.
HI, Christian!
I will study the information on the link above and let you know if it was possible to solve the problem or I still need help,
Thanks!
Okay sure, I will mark this ticket as pending an update from you. No need to reply right away, the ticket will remain open for 30 days.