Okay
  Public Ticket #2536795
Default event symbol type
Closed

Comments

  • michaelrabkin started the conversation

    Is there a way to set the default event symbol type to DATE instead of having to manually change it every time you create an event?

  •  894
    Zhivko replied

    Hi,

    In your theme or child-theme functions.php file add following filter:

    // Stec filter: force Icon Type to Date
    add_filter('stec_insert_post', function($post_data) {
        if ($post_data['post_type'] !== 'stec_event') {
            return $post_data;
        }
        $post_data['meta_input']['icon_type'] = 'date';
        return $post_data;
    });



    Stachethemes Developer

  • michaelrabkin replied

    I added it to the end of functions.php, but "select event symbol type" still defaults to icon when adding a new event.

  •  894
    Zhivko replied

    The icon type should change upon saving the event.


    Stachethemes Developer