question

The WordPress Core question shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[question]'); 
  1. // variable usage 
  2. $result = do_shortcode('[question]'); 
  3. echo $result;  

Defined (1)

The shortcode is defined in the following location(s).

/modules/shortcodes/quiz.php  
  1. /* 
  2. * @since 4.5.0 
  3. */ 
  4. public static function init() { 
  5. add_shortcode( 'quiz', array( __CLASS__, 'shortcode' ) ); 
  6. add_shortcode( 'question', array( __CLASS__, 'question_shortcode' ) ); 
  7. add_shortcode( 'answer', array( __CLASS__, 'answer_shortcode' ) ); 
  8. add_shortcode( 'wrong', array( __CLASS__, 'wrong_shortcode' ) ); 
  9. add_shortcode( 'explanation', array( __CLASS__, 'explanation_shortcode' ) ); 
  10.