I would like to integrate MainWP with Asana to create tasks for every bug and every update, and basically for everything that requires my involvement on the sites.
The problem is that I can’t find an event handler that is responsible for this, can you help me with this?
MainWP does not have a direct event handler for integrating task management systems like Asana.
However, you can work around this by using MainWP’s available hooks and integrating them with tools like Zapier or custom scripts to automate task creation based on site updates, plugin/theme updates, or issues detected on your child sites.
For example mainwp_cronupdatecheck_action
When I call it, I get an error that no agrments were returned from the hook
[09-Sep-2024 17:24:01 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function your_custom_function_name(), 0 passed in /public_html/wp-includes/class-wp-hook.php on line 324 and exactly 9 expected in public_html/wp-content/themes/astra-child/functions.php:208
Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(324): your_custom_function_name() #1 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #3 /public_html/wp-cron.php(191): do_action_ref_array(‘mainwp_cronupda…’, Array) #4 {main}
in /public_html/wp-content/themes/astra-child/functions.php on line 208
Thank you, this is exactly what I needed.
Can you also tell me which hooks to use to track all errors in the site, for example, when the site stops pinging, gives a 500 error, Google PSI has deteriorated, or anything else that could affect the site.