• Plugin Author Deepak Khokhar

    (@deepakkite)


    The new version 1.0.5 now supports the apply_filter functionality before displaying the column value for custom columns.

    First, add a custom column and give it a name and user meta field. This value in the “user meta field” will be used as a column id (see example below).

    An example to show you the use case (replace custom_cal with your user meta field value and update your code logic):

    add_filter( 'muc_filter_custom_col_val', 'muc_filter_col_val_callback', 10, 3 );
    function muc_filter_col_val_callback($custom_col_val, $column_id, $uid){
    	if( $column_id == 'custom_cal' ){
    		// logic to calculate user data
    		return 'User ID - ' . $uid;
    	}
    }
  • The topic ‘Custom value for a column’ is closed to new replies.