• Resolved Rajeev Rajan

    (@rajeevrf)


    Hi,

    I dono how to use the below code which you provided.

    add_action(‘event_manager_event_dashboard_column_Your_array_key’,’your_theme_event_dashboard_value’);
    function your_theme_event_dashboard_value($event ){
    echo ‘Custom column value here’;
    }
    ————————

    New column I wanted to add is “Assigned To” as Column heading and its value from meta_key “_organizer_email”.

    Can you provide sample code for the above field? Or a working example for creating a new column instead of just syntax?

Viewing 1 replies (of 1 total)
  • Hi @rajeevrf,

    Please check this code and adjust as per your needs with meta key and value.

    add_filter('event_manager_event_dashboard_columns','custom_column_in_dashboard');
    function custom_column_in_dashboard($columns){
        $columns['organizer_email'] = __( 'Organizer email', 'wp-event-manager' );
    }
    
    add_action(‘event_manager_event_dashboard_column_organizer_email’,’your_theme_event_dashboard_value’);
    function your_theme_event_dashboard_value($event ){
    echo ‘Custom column value here’;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Add new fields to the Event Dashboard table’ is closed to new replies.