• I am trying to create a simple ticket system using contact form 7 and flamingo. In the flamingo admin page I am trying to add a “status” column and bulk actions to set this status to open, close, or other.
    I could create bulk actions and a column using these filters/actions:

    add_filter('bulk_actions-flamingo_page_flamingo_inbound', 'my_bulk_action');
    ...
    add_filter('manage_flamingo_inbound_posts_columns', function($columns) {
    ...
    add_action('manage_flamingo_inbound_posts_custom_column', function($column_key, $post_id) {
    ...
    

    All this is working, but when I try to set a handler for the bulk action using this:

    
    add_filter( 'handle_bulk_actions-flamingo_page_flamingo_inbound', 'my_bulk_action_handler', 10, 3 );
    function my_bulk_action_handler($redirect_url, $action, $post_ids) {
    debug_to_console( 'Running handler' );
     ...
    

    this function is never executed, I can’t get any message in the console.

    The full code is available here.

    So, is this the correct way to handle a bulk action with Flamingo?
    Is there another way to achieve this simple ticket function?

    Thanks!

  • The topic ‘Support Ticket Function’ is closed to new replies.