Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter steff66

    (@steff66)

    I used a mu-plugin to help myself:

    <?php
    /**
    * Plugin Name: EventPrime Capabilities Fix
    */
    add_action(‘init’, function() {
    $admin = get_role(‘administrator’);
    if ($admin) {
    $admin->add_cap(‘publish_em_events’);
    $admin->add_cap(‘edit_em_events’);
    $admin->add_cap(‘edit_others_em_events’);
    $admin->add_cap(‘delete_em_events’);
    $admin->add_cap(‘delete_others_em_events’);
    $admin->add_cap(‘read_private_em_events’);
    $admin->add_cap(‘edit_private_em_events’);
    $admin->add_cap(‘delete_private_em_events’);
    }
    });

    // Status-Override von EventPrime korrigieren
    add_filter(‘wp_insert_post_data’, function($data, $postarr) {
    if (empty($data[‘post_type’]) || $data[‘post_type’] !== ’em_event’) {
    return $data;
    }
    // Wenn WordPress publish will, lass es zu
    if (!empty($postarr[‘post_status’]) && $postarr[‘post_status’] === ‘publish’) {
    $data[‘post_status’] = ‘publish’;
    }
    return $data;
    }, 99, 2);

    Plugin Support epsupport1

    (@epsupport1)

    Hi @steff66

    Thank you for reporting this issue and for sharing the console details.

    Our team has already fixed this issue, and the patch will be included in the upcoming release, which will be available shortly.

    Please update the plugin once released and clear your cache before testing again.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.