vc_add_shortcode_param()

⌘K
  1. Home
  2. Docs
  3. Inner API
  4. vc_add_shortcode_param()

vc_add_shortcode_param()

SINCE 4.4

<?php vc_add_shortcode_param($name, $form_field_callback, $script_url = null)?>

Helper function to register a new shortcode attribute.

Params

Param name Type Required Description
$name String Yes Attribute name.
$integrated_shortcode String Yes The callback will be called when the settings form is shown and the attribute is added to the shortcode.
$script_url String No JavaScript file URL, which will be attached at the end of the settings form.

Example

To see an example of how to create a new param type shortcode param, please visit our developers “How To’s” section.

Was this article helpful to you? No Yes

How can we help?