WordPress.org

Forums

codex example function incomplete (1 post)

  1. Thea G
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic