Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $questions_wanted = 2000;
- $questions_got = 0;
- $all_questions = [];
- while($questions_got < $questions_wanted){
- $questions = Sensei()->lesson->lesson_quiz_questions( get_the_ID() );
- if( count( $questions ) > 0 ){
- foreach($questions as $question):
- array_push($all_questions, $question->ID);
- $questions_got++;
- endforeach;
- }
- }
- ?>
- <?php
- //$unique_questions = array_unique($all_questions);
- $counts = array_count_values($all_questions);
- var_dump($counts);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement