/** * Add clear custom fields cache button. * * @access public * @return void */ public function render_uninstall() { $html = '<div class="hr-divider"></div>'; $html .= '<h3><span><i class="fa fa-list"></i> ' . esc_html__('Clear Custom Fields Cache', 'gravityformszohocrm') . '</span></h3>'; $html .= '<p>' . esc_html__('Due to Zoho CRM\'s daily API usage limits, Gravity Forms stores Zoho CRM custom fields data for twelve hours. If you make a change to your custom fields, you might not see it reflected immediately due to this data caching. To manually clear the custom fields cache, click the button below.', 'gravityformzohocrm') . '</p>'; $html .= '<p><a href="' . add_query_arg('clear_field_cache', 'true') . '" class="button button-primary">' . esc_html__('Clear Custom Fields Cache', 'gravityformszohocrm') . '</a></p>'; echo $html; echo parent::render_uninstall(); }