| Server IP : 3.104.177.69 / Your IP : 216.73.216.186 Web Server : Apache System : Linux ip-172-26-13-94 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64 User : daemon ( 1) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/wpforms-lite/src/Admin/Builder/ |
Upload File : |
<?php
namespace WPForms\Admin\Builder;
/**
* Image Upload functionality for the Form Builder Settings.
*
* @since 1.9.7.3
*/
class ImageUpload {
/**
* Initialize class.
*
* @since 1.9.7.3
*/
public function init(): void {
$this->hooks();
}
/**
* Register hooks.
*
* @since 1.9.7.3
*/
public function hooks(): void {
add_action( 'wpforms_builder_enqueues', [ $this, 'enqueues' ] );
}
/**
* Enqueue assets for the Form Builder.
*
* @since 1.9.7.3
*/
public function enqueues(): void {
$min = wpforms_get_min_suffix();
wp_enqueue_script(
'wpforms-builder-settings-image-upload',
WPFORMS_PLUGIN_URL . "assets/js/admin/builder/image-upload{$min}.js",
[ 'wp-util', 'wpforms-builder-settings' ],
WPFORMS_VERSION,
true
);
}
}