Support » Requests and Feedback » codex example function incomplete

  • Thea G

    (@thea-g)


    I am not in the codex developing community but I noticed a missing assignment statement in a function, perhaps you could pass this along.

    http://codex.wordpress.org/Creating_Tables_with_Plugins

    in the section “The Whole Function”
    the second function, jal_install_data()
    doesn’t set the variable for $table_name
    so it doesn’t work. It won’t insert data, as is.

    you have to modify it by adding this line

    $table_name = $wpdb->prefix.”liveshoutbox”;

    Could be frustrating to someone. Because otherwise it works beautifully.

    Sorry if this is in the wrong place.

  • The topic ‘codex example function incomplete’ is closed to new replies.