Warning: Declaration of CJTPlusInstaller::run() should be compatible with & CJTServicesInstaller::run() in /home/cjtdev/public_html/dev/wp-content/plugins/css-javascript-toolbox-plus/Installer/Installer.class.php on line 90
Topic: Adding custom parameters to code blocks | CJT Staging

Get 20% Discounts! offer in 2 days

Adding custom parameters to code blocks

NEW Landing page 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.