public function addImportButtons($views)
    {
        if (current_user_can('administrator') || current_user_can('editor')) {
            $button  = '<div class="import-buttons actions" style="position: relative;">';

            if (get_field('event_api_url', 'option')) {
                $button .= '<div id="importevents" class="button-primary">' . __('Import events', 'event-integration') . '</div>';
            }
            $button .= '</div>';
            $views['import-buttons'] = $button;
        }

        return $views;
    }
public function addImportButtons($views)
    {
        if (current_user_can('administrator') || current_user_can('editor')) {
            $button  = '<div class="import-buttons actions" style="position: relative;">';

            if (get_field('event_api_url', 'option')) {
                $button .= '<div id="importevents" class="button-primary">' . __('Import events', 'event-integration') . '</div>';
            }
            $button .= '</div>';
            $views['import-buttons'] = $button;
        }

        return $views;
    }
public function addImportButtons ( $ views ) { if ( current_user_can ( 'administrator' ) || current_user_can ( 'editor' ) ) { $ button = '<div class="import-buttons actions" style="position: relative;">' ; if ( get_field ( 'event_api_url' , 'option' ) ) { $ button .= '<div id="importevents" class="button-primary">' . __ ( 'Import events' , 'event-integration' ) . '</div>' ; } $ button .= '</div>' ; $ views [ 'import-buttons' ] = $ button ; } return $ views ; }
Add buttons to start parsing xcap and Cbis
@return void
Add buttons to start parsing xcap and Cbis