• Resolved Leoned

    (@leo9412)


    Hello! i’m using the callback funtion in some of my fields, with this example Callback, works fine, but i need to fill a big amount of choices.

    there’s a way to fill the array with a database query instead of a SWITCH?, i searched how to do it, but it doesn’t works, i’m noob in PHP, if someone knows to do this i’d appreciate it. Thanks!

    • This topic was modified 5 years, 7 months ago by Leoned.
Viewing 1 replies (of 1 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @leo9412,

    You must check the value of choice with either switch or if/else statement to match your requirement. You can use any query which return array inside switch or if/else statement. If you need help with any wordpress query, please provide more description.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Callback with database’ is closed to new replies.