Top

Developers

ABOUT PLUGIN

Extensive VC is a powerful WordPress tool which allows you to add unique, flexible and fully responsive shortcode elements on your site. It is an addon for premium plugin WPBakery Page Builder Visual Composer, so first you need to install/activate this required plugin to be able to use Extensive VC plugin. 

 

Plugin is written in Object-Oriented PHP concept with WordPress native functions and hooks for back-end area. Front-end is written in CSS, JavaScript and HTML. For compiling JavaScript and CSS files, Gulp compiler is implemented. Gulp tasks watching/concatenate all js/scss files from all files inside the plugin folder and results are main js/css files with minify versions. CSS is written in SCSS syntax.

HOOKS

There are two types of hooks: actions and filters.
  • Actions allows you to add extra functionality at a specific point in the processing of the page – for example, you might want to add extra style for shortcodes or 3rd party scripts to improve some functionality. Here you can learn more about adding WordPress actions 
  • Filters allow you to intercept and modify data as it is processed—for example, you might want to insert another CSS code in a WordPress shortcode element. Here you can learn more about adding WordPress filters

 

Below you can see actions and filters set in plugin.

Actions

1. Action to enqueue additional scripts before main css file (main.min.css)
do_action( ‘extensive_vc_enqueue_additional_scripts_before_main_css’ );

2. Action to enqueue additional scripts before main js file (main.min.js)
do_action( ‘extensive_vc_enqueue_additional_scripts_before_main_js’ );

3. Action to enqueue additional 3rd party scripts
do_action( ‘extensive_vc_enqueue_additional_scripts’ );

4. Action to enqueue additional 3rd party scripts for admin panel
do_action( ‘extensive_vc_enqueue_additional_admin_scripts’ );

5. Action to include additional shortcodes main load file
do_action( ‘extensive_vc_action_include_shortcodes_file’ );

6. Action to include additional custom post types main load file
do_action( ‘extensive_vc_action_include_cpt_file’ );

7. Action to enqueue additional scripts for meta boxes
do_action( ‘extensive_vc_enqueue_additional_admin_meta_box_scripts’ );

8. Action to include additional widgets main load file
do_action( ‘extensive_vc_action_include_widgets_file’ );

9. Action to include additional plugins main load file
do_action( ‘extensive_vc_action_include_plugins_file’ );

Filters

1. Filter to add custom css style after main css (main.min.css)
apply_filters( ‘extensive_vc_filter_main_custom_style’, $style = ” );

1. Filter to extend main plugin js with additional variables (main.min.js)
apply_filters( ‘extensive_vc_filter_main_js_global_variables’, $evc_global_variables );

3. Filter to modify allowed custom post types for meta boxes saving
apply_filters( ‘extensive_vc_filter_allowed_post_types_meta_boxes’, array( ‘post’, ‘page’ ) );

4. Filter to add additional custom css style for shortcodes in Visual Composer page builder
apply_filters( ‘extensive_vc_filter_add_vc_shortcodes_custom_style’, $style = ” );

5. Filter to modify custom icon for shortcodes in Visual Composer page builder
apply_filters( ‘extensive_vc_filter_add_vc_shortcodes_custom_icon’, $icons = array() );

6. Filter to modify shortcodes name list for plugin admin settings page
apply_filters( ‘extensive_vc_filter_shortcodes_list’, $shortcodes = array() );

7. Filter to add additional custom post type
apply_filters( ‘extensive_vc_filter_add_custom_post_type’, $cptClassNames = array() );

8. Filter to add additional shortcode
apply_filters( ‘extensive_vc_filter_add_vc_shortcode’, $shortcodesInstance = array() );

9. Filter to add additional parameters for shortcode
apply_filters( ‘extensive_vc_filter_shortcode_params’, $params, $shortcode_name );

10. Filter to add additional widget
apply_filters( ‘extensive_vc_filter_register_widgets’, $widgets = array() );

TEMPLATE OVERRIDING

Template overriding is useful for developers who want to override/modify some shortcodes with their own code. To do that you just need to create an extensive-vc folder inside your main theme or child theme and paste the shortcode folder that you want to modified inside the extensive-vc folder. An example structure might be theme-folder/extensive-vc/button/templates/button.php. Then just add/modify code you want. All options from shortcodes are also available inside your template so be free to use it.

Extensive VC plugin allows you to add additional shortcode parameters which you will be able to use in your side when you override some shortcode. Here is example code how you can do that:

Extensive VC addons for WPBakery page builder Visual Composer

HELPER FUNCTIONS

Helper functions from plugin allows you to add generic elements on an easy way to avoid reduplication while coding. All helper function you can be found inside the plugin lib folder – helper-functions.php file. Below you can see available helper functions in plugin.

1. Returns array of number of columns options, useful for shortcodes in vc_map(). Function has variable disable_by_keys which allows you to disable some of options by the option key.
extensive_vc_get_number_of_columns_array( $disable_by_keys = array() )

2. Returns array of space between items options, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option.

extensive_vc_get_space_between_items_array( $first_empty = false )

3. Returns array of yes/no options, useful for shortcodes in vc_map(). Function has variables first_empty which allows you to add default empty value as first option and set_yes_to_be_first to switch options value to yes value be before no.

extensive_vc_get_yes_no_select_array( $first_empty = true, $set_yes_to_be_first = false )

4. Returns array of link target options, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option.

extensive_vc_get_link_target_array( $first_empty = false )

5. Returns array of title tags options, useful for shortcodes in vc_map(). Function has variables first_empty which allows you to add default empty value as first option and additional_options which allows you to add additional title tags.

extensive_vc_get_title_tag_array( $first_empty = false, $additional_options = array() )

6. Returns array of font weights options, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option.

extensive_vc_get_font_weight_array( $first_empty = false )

7. Returns array of font styles options, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option.

extensive_vc_get_font_style_array( $first_empty = false )

8. Returns array of text transforms options, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option.

extensive_vc_get_text_transform_array( $first_empty = false )

9. Returns array of text transforms options, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option.

extensive_vc_get_text_decorations_array( $first_empty = false )

10. Returns array of Visual Composer icon libraries, useful for shortcodes in vc_map(). Function has variable first_empty which allows you to add default empty value as first option. Available Icon Packs are (Font Awesome, Open Iconic, Typicons, Entypo, Linecons, Mono Social and Material)

extensive_vc_get_shortcode_icon_library_array( $first_empty = false )

11. Returns array of Visual Composer icon options for shortcodes panel.

extensive_vc_get_shortcode_icon_options_array()

12. Returns array of image behavior options. Available options are None, Zoom, Overlay and Lightbox.

extensive_vc_get_image_behavior_array()

13. Checks if $haystack ends with $needle and returns proper bool value.

extensive_vc_string_ends_with( $haystack, $needle )

14. Removes px in provided value if value ends with px.

extensive_vc_filter_px( $value )

15. Print generated style attribute.

extensive_vc_print_inline_style( $value )

16. Print generated attribute.

extensive_vc_print_inline_attrs( $attributes, $allow_zero_values = false )