* @license GPL-2.0+ * @link https://anspress.io * @copyright 2014 Rahul Aryan */ /** * Class for AnsPress base page shortcode */ class AnsPress_Question_Shortcode { protected static $instance = null; public static function get_instance() { // create an object null === self::$instance && self::$instance = new self(); return self::$instance; // return the object } /** * Control the output of [question] shortcode * * @param string $content * @return string * @since 2.0.0-beta */ public function anspress_question_sc( $atts, $content = '' ) { ob_start(); echo '