Options callback is adding single quotes around the function call

Support MB Builder Options callback is adding single quotes around the function call

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10337
    Jason KinneyJason Kinney
    Participant

    In builder I am adding a custom attribute to a select box as options => custom_callback(), but the builder is wrapping the function in single quotes. Is there a fix?

    #10345
    Anh TranAnh Tran
    Keymaster

    Hi Alex,

    All values in the custom attributes are treated as strings. If we make it run as PHP code, then we have to use something similar to eval, which can open to many security issues. I think it's should be avoided in this case. If you want to do that, please modify and use the exported code instead.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Options callback is adding single quotes around the function call’ is closed to new replies.