How to allow organizers to add images in the description box

How to allow organizers to add images in the description box

How to allow organizers to add images in the description box on the submit event page?

In order to allow the organizers to add images while submitting the event in the description box, from the frontend, you need to add the below-mentioned code in functions.php and add upload image capability to thie organizer role.

  1. add_action( 'admin_init', 'allow_organizer_uploads' );
  2. function allow_organizer_uploads()
  3. {
  4.      $organizer = get_role('organizer');
  5.         $organizer->add_cap('upload_files');
  6. } 
  7. add_filter( 'submit_event_form_wp_editor_args', 'wpem_submit_event_form_wp_editor_args', 10 );
  8. function wpem_submit_event_form_wp_editor_args($args)
  9. {
  10.     $args['media_buttons'] = true; 
  11.     return $args;
  12. }

    • Related Articles

    • Installation of WP Event Manager

      Automatic Installation of FREE WP Event Manager Installing WP Event Manager is just a matter of a few clicks. You can add WP Event Manager to your website by using the dashboard offered to you at the backend of the CMS. To install the plugin ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Updating WP Event Manager

      Automatic Update WP Event Manager always strives to achieve perfection in every way and that is why we constantly update our plugins so that you can enjoy their innovative features. Here are the steps that you need to take to update WP Event Manager: ...
    • Event Detail Page

      The Event detail page carries various details of a particular event. These details include the event title, event type, event location, event start date & time, event end date & time, event description, etc. besides this, you can also get the details ...