Get 20% Discounts! offer in 2 days

Adding custom parameters to code blocks

Home Support Support Tickets Adding custom parameters to code blocks

Viewing 0 reply threads
  • Author
    Posts
    • #15258

      Hello,

      I was trying to add custom parameters to using the following code in a php block:
      $cb->params()->add(‘theme’, ‘string’, ‘darkness’)->validate();

      but this seems to cause the script to error out when it is executed.

      Is this the proper way to add custom parameters or is there another way to specify what parameters the code block accepts?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.