• Resolved Alex Furr

    (@alexfurr)


    Hi,

    Great plugin. We have one requirement that I’m told would be really useful.

    When an event is submitted for approval, could we show the name of the submitter on the wp table
    edit.php?post_type=event_listing

    The only way to do this currently is to edit the event and look for the ‘Posted By’ column.

    Please let me know if this makes sense and if it’s something that you agree would be a useful feature.

    Best wishes,

    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wpemhelp

    (@wpemhelp)

    Hi,


    We don’t have this feature with us now.


    However, we would add this feature as an enhancement on our end and our dev team will work on it.


    If you still need it, then it would be a case of customization.


    Thank You.


    Best Regards.

    Thread Starter Alex Furr

    (@alexfurr)

    Hi Thanks for getting back to me.

    I don’t fully understand the reply – are you suggesting that your dev team is going to work on it?

    Best wishes,

    Alex

    Plugin Support wpemhelp

    (@wpemhelp)

    Hi,

    Our Dev team will work on it and will update you once issue is fixed.

    Thank You.

    Best Regards.

    Plugin Author Rita Kikani

    (@kikanirita)

    Hi @alexfurr ,

    There is filters to add or delete CPT page columns from event page at admin side.

    This is to add column title :

    apply_filters(‘wp_event_manager_cpt_event_column’, $columns);

    To display value of column in cpt :

    apply_filters(‘wp_event_manager_cpt_event_column’, $columns);

    You can write code to customize cpt file in your theme functions.php file like :

    add_filter('wp_event_manager_cpt_event_column', 'wpem_cpt_event_column');
    
    function wpem_cpt_event_column($columns) {
    
        $columns['event_submitter'] = __('Event Submitter', 'wp-event-manager');
    
        return $columns;
    
    }
    
    add_filter('wpem_cpt_event_custom_column', 'wpem_cpt_event_custom_column_value', 10, 3);
    
    function wpem_cpt_event_custom_column_value($value, $column, $post) {
    
        if($column == 'event_submitter'){
    
            $author_id = $post->post_author;
    
            $value = the_author_meta( 'user_nicename' , $author_id );;
    
        }
    
        return $value;
    
    }

    I hope that this code will help you resolve your query.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding event submitter to wp table’ is closed to new replies.