28 lines
572 B
PHP
28 lines
572 B
PHP
<?php
|
|
namespace FBPATCH;
|
|
|
|
/*
|
|
* it means someone outside wp is accessing the file, in this case kill it.
|
|
*/
|
|
if (!defined('ABSPATH')) {
|
|
die('You can not access this file!');
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
*/
|
|
function add_form_builder_calculations_patch() {
|
|
$handle = 'form_builder_calculations_patch';
|
|
$url = Fbpatch::root_url() . '/js/calculations.js';
|
|
$dependencies = array('de_fb_calc');
|
|
$version = null;
|
|
$defer = true;
|
|
wp_enqueue_script($handle, $url, $dependencies, $version, $defer);
|
|
}
|
|
add_action('wp_enqueue_scripts', __NAMESPACE__.'\add_form_builder_calculations_patch', 22);
|
|
|
|
|
|
|
|
?>
|