Forums
Home / Plugin: Caldera Forms Run Action / Post Process
(@vettura)
5 years, 9 months ago
What am I doing wrong?
<?php add_action(‘post_process_run_action’, ‘hello’, 2); function hello($data){ global $wpdb; $a = $wpdb->prefix.’lkw_products’; $wpdb->insert($a, array( ‘name’ => 123, ‘ProductID’ => 456)); }
Позиция Post-Process Type actions Action / Filter post_process_run_action
I am writing this code in my plug-in file, not in the function.php file.