Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter jtomte

    (@jtomte)

    Thanks for swift reply!

    [SOLVED]

    noedit_columns worked like a charm!
    Fortunately I dont need to update those two joined columns. It is only for readability. Meaningful text instead of foreign key indexes.
    Here’s what I did:
    I have two joined columns, each from separate tables, that needs to be protected from editing.

    $noedits = array('join_table_1', 'join_table_2');

    add_db_table_editor(
    array(
    'title' => 'h1_title',
    'id' => '1',
    'editcap' => 'manage_options',
    'id_column' => 'id',
    'table' => 'table_name',
    'cap' => 'manage_options',
    'noedit_columns' => $noedits,
    'sql' => $join_sql)
    );

    Again, thanks for a great plugin! Saves me a lot of work ??

    • This reply was modified 8 years ago by jtomte.
    • This reply was modified 8 years ago by jtomte.
    • This reply was modified 8 years ago by jtomte.
Viewing 1 replies (of 1 total)