add type attribute attach_images shorcut visual composer [on hold]

To add a new type attribute “attach_images” to the shortcut index of the visual composer plugin, I changed the file level /wp-content/plugins/js_composer/include/classes/settings/class-vc-automapper.php.

by adding the code :

<option value=”dropdown”<?php echo ‘<# if (type === “dropdown”) { #> selected<# } #>’ ?>><?php _e( ‘Dropdown’, ‘js_composer’ ) ?></option>

Now i can select images from my shorcut in the backoffice but not shown in front when inserting the shortcut in a page .
In shortcut parameters there is an input that should contain image id ( when i add a static images ids , they appear in front ).

i would ask how to properly override the mentionned page class-vc-automapper.php in order to have an attach_images type attribute for shortcut visual composer

and how to get id of selected images in order to appear in font ?

Any ideas

thanks

Read more here:: add type attribute attach_images shorcut visual composer [on hold]

Leave a Reply

Your email address will not be published. Required fields are marked *