[themify_is_logged_in]
/* Add a new column header in dashboard table * * @param array $args dashboard query arguments * @return void */ function wpufe_dashboard_change_head( $args ) { printf( '<th>%s</th>', __( 'Typ', 'wpuf' ) ); } add_action( 'wpuf_account_posts_head_col', 'wpufe_dashboard_change_head', 10, 2 ); /* Add a new table cell to the dashboard table rows. * It adds a form for changing the post status of each posts via ajax call. * * @param array $args dashboard query arguments * @param object $post current rows post object * @return void */ function wpufe_dashboard_row_col( $args, $post ) { $typeID=$post->ID; ?> <td> <?php if ( $sub = get_post( $typeID )->post_type ) { // get_post_meta( $post->ID, 'subhead', true ) echo strtoupper($sub); } else { echo $typeID; } ?> </td> <?php } add_action( 'wpuf_account_posts_row_col', 'wpufe_dashboard_row_col', 10, 2 );
[/themify_is_logged_in]