fbpx
Be a part of our upcoming webinar on the   Attendee Information Addon   on the 24th April at 10:00 PM IST. Register Now! and Get EXCITING OFFER.
How can we help?

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.

add_action( 'admin_init', 'allow_organizer_uploads' );
function allow_organizer_uploads()
{
	$organizer = get_role('organizer');
        $organizer->add_cap('upload_files');
}

add_filter( 'submit_event_form_wp_editor_args', 'wpem_submit_event_form_wp_editor_args', 10 );
function wpem_submit_event_form_wp_editor_args($args)
{
	$args['media_buttons'] = true;

    return $args;
}
How To Allow Organizers To Add Images In The Description Box
Editorial Team

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close