????JFIF??x?x????'
| Server IP : 172.67.174.47 / Your IP : 216.73.216.87 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/pontiacques.org/wp-content/plugins/give/src/FormTaxonomies/ |
Upload File : |
<?php
namespace Give\FormTaxonomies;
use Give\Helpers\Hooks;
use Give\ServiceProviders\ServiceProvider as ServiceProviderInterface;
/**
* @since 3.16.0
*/
class ServiceProvider implements ServiceProviderInterface
{
/**
* @since 3.16.0
*/
public function register()
{
give()->bind(Actions\EnqueueFormBuilderAssets::class, function() {
$formId = absint($_GET['donationFormID'] ?? 0);
return new Actions\EnqueueFormBuilderAssets(
new ViewModels\FormTaxonomyViewModel($formId, give_get_settings())
);
});
}
/**
* @since 3.16.0
*/
public function boot()
{
Hooks::addAction('givewp_form_builder_updated', Actions\UpdateFormTaxonomies::class, '__invoke', 10, 2);
Hooks::addAction('givewp_form_builder_enqueue_scripts', Actions\EnqueueFormBuilderAssets::class);
}
}