HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/karjerosdiena.lt/wp-content/plugins/js_composer/include/autoload/vc-pages/automapper.php
<?php
/**
 * Autoload lib related to our plugin automapper functionality.
 *
 * @note we require our autoload files everytime and everywhere after plugin load.
 * @depreacted 7.7
 */

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

// Helpers.
if ( ! function_exists( 'vc_atm_build_categories_array' ) ) {
	/**
	 * Build categories array from string.
	 *
	 * @depreacted 7.7
	 * @param string $category
	 *
	 * @return array
	 */
	function vc_atm_build_categories_array( $category ) {
		_deprecated_function( __FUNCTION__, '7.7', "vc_modules_manager()->get_module( 'vc-automapper' )->build_categories_array()" );
		if ( ! vc_modules_manager()->is_module_on( 'vc-automapper' ) ) {
			vc_modules_manager()->turn_on( 'vc-automapper' );
		}
		return vc_modules_manager()->get_module( 'vc-automapper' )->build_categories_array( $category );
	}
}
if ( ! function_exists( 'vc_atm_build_params_array' ) ) {
	/**
	 * Build params array from string.
	 *
	 * @depreacted 7.7
	 * @param array $init
	 *
	 * @return array
	 */
	function vc_atm_build_params_array( $init ) {
		_deprecated_function( __FUNCTION__, '7.7', "vc_modules_manager()->get_module( 'vc-automapper' )->build_params_array()" );
		if ( ! vc_modules_manager()->is_module_on( 'vc-automapper' ) ) {
			vc_modules_manager()->turn_on( 'vc-automapper' );
		}
		return vc_modules_manager()->get_module( 'vc-automapper' )->build_params_array( $init );
	}
}