• Resolved Rajeev Rajan

    (@rajeevrf)


    Hi,

    In Event dashboard page, how can I remove the unwanted fields from the table?
    I would like to remove fields like Location, Viewed from the table.
    Is it possible to add other fields in the table?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @rajeevrf,
    You can do it by following this code

    add_filter('event_manager_event_dashboard_columns','your_theme_name_event_dashboard');
    function your_theme_name_event_dashboard($columns){
    unset(columns['event_location']);
    return $columns;
    }

    Thank you

    Thread Starter Rajeev Rajan

    (@rajeevrf)

    Hi,

    Below code worked. Thanks.

    add_filter(‘event_manager_event_dashboard_columns’,’your_theme_name_event_dashboard’);
    function your_theme_name_event_dashboard($columns){
    unset($columns[‘event_location’]);
    return $columns;
    }

    Can I add new fields to the table?

    Hi @rajeevrf,
    Yes, just add an extra column in an array and then bind value with

    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';
    }

    Add your custom array key in hook and echo custom value from event variable or anything else if you want to show.

    Thank you

    Thread Starter Rajeev Rajan

    (@rajeevrf)

    Hi,

    Thanks for the code. I am not able to understand how to use this.

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide unwanted fields in Event Dashboard page’ is closed to new replies.