• Resolved shimist

    (@shimist)


    I want to add a product visit column in the dashboard
    What code should I use?

    function edd_download_columns( $download_columns ) {
    $category_labels = edd_get_taxonomy_labels( ‘download_category’ );
    $tag_labels = edd_get_taxonomy_labels( ‘download_tag’ );

    $download_columns = array(
    ‘cb’ => ‘<input type=”checkbox”/>’,
    ‘title’ => __( ‘Name’, ‘easy-digital-downloads’ ),
    ‘download_category’ => $category_labels[‘menu_name’],
    ‘download_tag’ => $tag_labels[‘menu_name’],
    ‘price’ => __( ‘Price’, ‘easy-digital-downloads’ ),
    ‘sales’ => __( ‘Sales’, ‘easy-digital-downloads’ ),
    ‘earnings’ => __( ‘Earnings’, ‘easy-digital-downloads’ ),
    ‘date’ => __( ‘Date’, ‘easy-digital-downloads’ )
    view
    );`

    return apply_filters( ‘edd_download_columns’, $download_columns );
    }

    Please tell me the necessary codes
    like this pic
    https://pasteboard.co/JhxYilV.jpg

    • This topic was modified 3 years, 7 months ago by shimist.
    • This topic was modified 3 years, 7 months ago by shimist.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add view column to dashboard’ is closed to new replies.