<?php
/**
 * Autoload hooks for [vc_wp_text] shortcode of 'Wp Text' element.
 *
 * @note we require our autoload files everytime and everywhere after plugin load.
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

if ( 'vc_edit_form' === vc_post_param( 'action' ) ) {
	VcShortcodeAutoloader::getInstance()->includeClass( 'WPBakeryShortCode_Vc_Wp_Text' );

	add_filter( 'vc_edit_form_fields_attributes_vc_wp_text', array(
		'WPBakeryShortCode_Vc_Wp_Text',
		'convertTextAttributeToContent',
	) );
}
