Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 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);

    Thread Starter steff66

    (@steff66)

    Thanks it works 🙂

    Hallo,

    bei mir wird das Impressum teilweise auf Englisch dargestellt.

    <b>Information according to § 5 DDG </b>

    und

    Haftung für Inhalt:
    The contents of our pages were created with the greatest care. However, we cannot assume any liability for the correctness, completeness and topicality of the contents. As a service provider, we are responsible for our own content on these pages in accordance with § 5 DDG and general laws. According to § 5 DDG we are not obliged to monitor transmitted or stored information from third parties or to investigate circumstances that indicate illegal activity. Obligations to remove or block the use of information according to general laws remain unaffected. However, liability in this respect is only possible from the time of knowledge of a concrete infringement. If we become aware of any such violations, we will remove the content in question immediately.

    Viele Grüße
    Steffen

    You must change the time.php in the plugin /all-in-one-event-calendar/app/view/event/time.php on row 184
    return $time->format_i18n( 'j ' ) . '. ' . $time->format_i18n( 'F ' ) ;

    Thread Starter steff66

    (@steff66)

    Hallo Robert,

    ich habe gerade nachgesehen. Die Rechte stimmen,sind alle 644.

    Viele Grüße

    Steffen

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