• 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));
    }

    • This topic was modified 5 years, 9 months ago by vettura.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Process’ is closed to new replies.