• Resolved jedidiah13

    (@jedidiah13)


    How do i remove this feature from the admin woocommerce orders page:

    *Clicking any part of the row takes you to the main edit order screen*

    I am trying to create my own inline editing. I added a text input but now if you click the text input it takes you into the edit order details page.

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

    (@jedidiah13)

    found the answer myself here:
    https://github.com/woocommerce/woocommerce/pull/18708

    I followed the comment on the page stating that stated this code:
    add_filter( ‘post_class’, function( $classes ) {
    if ( is_admin() ) {
    $current_screen = get_current_screen();
    if ( $current_screen->base == ‘edit’ && $current_screen->post_type == ‘shop_order’ ) $classes[] = ‘no-link’;
    }
    return $classes;
    } );

    Add this to functions.php and it makes it removes the row click to edit order for everything

    • This reply was modified 4 years ago by jedidiah13.
Viewing 1 replies (of 1 total)
  • The topic ‘inline edit of woocommerce orders’ is closed to new replies.