Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Quick Edit – Set Data

function generatewp_quickedit_set_data( $actions, $post ) {
    $found_value = get_post_meta( $post->ID, 'generatewp_edit_time', true );

    if ( $found_value ) {
        if ( isset( $actions['inline hide-if-no-js'] ) ) {
            $new_attribute = sprintf( 'data-edit-time="%s"', esc_attr( $found_value ) );
            $actions['inline hide-if-no-js'] = str_replace( 'class=', "$new_attribute class=", $actions['inline hide-if-no-js'] );
        }
    }

    return $actions;
}
add_filter('post_row_actions', 'generatewp_quickedit_set_data', 10, 2);