Module::get_deprecated_shortcode_content( array $atts )

Handles the deprecated form charts shortcode.

Description

See also

Parameters

$atts

(array) (Required) Array of shortcode attributes.

  • 'id'
    (int) Form ID. This must always be present.
  • 'mode'
    (string) Slug of the evaluator to use. The evaluator must exist and be enabled for the form. Default is 'element_responses'.

Return

(string) Shortcode output.

Source

File: src/modules/evaluators/module.php

	public function get_deprecated_shortcode_content( $atts ) {
		$this->manager()->error_handler()->deprecated_shortcode( 'form_charts', '1.0.0-beta.9', "{$this->manager()->forms()->get_prefix()}form_charts" );

		$atts['mode'] = 'element_responses';

		return $this->get_shortcode_content( $atts );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.