moved all aptches from cipf plugin to fbpatch

This commit is contained in:
asus
2024-03-24 17:06:10 +01:00
parent 1745d8754d
commit 569f4524d3
14 changed files with 96 additions and 631 deletions

View File

@@ -0,0 +1,25 @@
<?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 test_modal() {
$handle = 'form_builder_modals_patch';
$url = Fbpatch::root_url() . '/js/modals.js';
$dependencies = array();
$version = null;
$defer = true;
wp_enqueue_script($handle, $url, $dependencies, $version, $defer);
}
add_shortcode('test_modal', __NAMESPACE__.'\test_modal');
?>