addon->get_slug(); $poll_id = $this->module_id; $poll_settings_instance = $this->settings_instance; /** * Fires when entry already saved on db * * Although it can be used for all addon. * Please keep in mind that if the addon override this method, * then this filter probably won't be applied. * To be sure please check individual addon documentations. * * @since 1.6.1 * * @param int $poll_id current Poll ID. * @param Forminator_Form_Entry_Model $entry_model Forminator Entry Model. * @param Forminator_Integration_Poll_Settings|null $poll_settings_instance of Integration Poll Settings. */ do_action( 'forminator_addon_poll_' . $addon_slug . '_after_entry_saved', $poll_id, $entry_model, $poll_settings_instance ); } /** * Get Submit poll error message * * @since 1.6.1 * @return string */ public function get_submit_error_message() { $addon_slug = $this->addon->get_slug(); $poll_id = $this->module_id; $poll_settings_instance = $this->settings_instance; $error_message = $this->submit_error_message; /** * Filter addon columns to be displayed on export submissions * * Although it can be used for all addon. * Please keep in mind that if the addon override this method, * then this filter probably won't be applied. * To be sure please check individual addon documentations. * * @since 1.6.1 * * @param array $export_columns column to be exported. * @param int $poll_id current poll ID. * @param Forminator_Integration_Poll_Settings|null $poll_settings_instance of Integration Poll Settings. */ $error_message = apply_filters( 'forminator_addon_' . $addon_slug . '_submit_poll_error_message', $error_message, $poll_id, $poll_settings_instance ); return $error_message; } }