AnsPress_Upgrader::get_question_ids()
Description #
Get all question ids.
Source #
File: lib/class-anspress-upgrader.php
public function get_question_ids() { global $wpdb; $this->question_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} p LEFT JOIN {$wpdb->ap_qameta} q ON q.post_id = p.ID WHERE q.post_id IS NULL AND post_type = 'question' ORDER BY ID ASC" ); // phpcs:ignore WordPress.DB }
Expand full source code Collapse full source code View on GitHub: lib/class-anspress-upgrader.php:109
Add your comment