AnsPress_Query::total_count( string $key )
Description #
Count total numbers of rows found.
Parameters #
- $keystring (Required) MD5 hashed key.
Source #
File: includes/class-query.php
public function total_count( $key ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found global $wpdb; $this->total_count = $wpdb->get_var( apply_filters( 'ap_found_rows', 'SELECT FOUND_ROWS()', $this ) ); // phpcs:ignore WordPress.DB }
Expand full source code Collapse full source code View on GitHub: includes/class-query.php:160
Add your comment