wpdatatables_after_frontent_edit_row

Contents

Description

This action is executed after editing action is applied. Can be used for validation.

Usage

add_action( 'wpdatatables_after_frontent_edit_row', 'after_frontent_edit_row', 10, 3 );

Parameters

  • $formData array
    Array of entries from front-end.
  • $rowId integer
    ID field of the row in MySQL table that was edited.
  • $tableId integer
    Identifier of the table from MySQL.

Examples

// Callback function for the wpdatatables_after_frontent_edit_row action hook
function after_frontent_edit_row( $formdata, $rowId, $tableID) { 
    // Provide id for your table where you need validation,
    // we insert 1 as example
    if ($tableID == 1) {
        //  Your code  
    }
}

add_action( 'wpdatatables_after_frontent_edit_row', 'after_frontent_edit_row', 10, 3 );