• Resolved umoori

    (@umoori)


    Assalam u Alikum and Good day!

    Is it possible to edit dashboard section without coding in dashboard.php file?
    I wanted to add some columns in table to show more information on dashboard.

    Regards,

Viewing 1 replies (of 1 total)
  • Hello @umoori,

    Yes you will be able to add columns in the dashboard page by adding the custom code in your theme’s functions.php file:

    Here is an example code to help you so that you can get started with the process:

    function wpufe_dashboard_change_head( $args ) {
    printf( '<th>%s</th>', __( 'Date', 'wpuf' ) );
    }
    
    add_action( 'wpuf_dashboard_head_col', 'wpufe_dashboard_change_head', 10, 2 );
    function wpufe_dashboard_row_col( $args, $post ) {
    ?>
    <td>
    <?php
    	
    $post_date = get_the_date( 'l F j, Y' ); 
    	echo $post_date;
    
    ?>
    </td>
    <?php
    }
    
    add_action( 'wpuf_dashboard_row_col', 'wpufe_dashboard_row_col', 10, 2 );

    regards,

Viewing 1 replies (of 1 total)

The topic ‘Editing Dashboard Section.’ is closed to new replies.