extend contact UI
Hi everybody,
I'm trying to achieve something that doesn't work so far. Maybe you have achieved something similar or you can point me in the right direction?
I need a button or link on the contact object form in order to trigger a custom php function. the php function does exist and ist working properly when invoked 'manually' (in functions.php) with hard coded variable valuse.
Is there a chance to extend the contact form in a way I can execute custom php functions on a contact object?
It's solved. It took a little more effort than expected but now it works like a charm.
I created a button in
add_action('fluent_crm/after_init', function () {
// do the easy stuff here
}
And also I added an observer via setInterval() in
add_action('admin_footer', function () {
// do the script and ajax here
}
Hope this helps someone.