Following question arises we had a testing session in wordpress core,

Which is the efficient way of using the wpdb class objects outputs in wordpress?

Example,
Getting wp users table name,

$wpdb->tables('all')['users']

(or)

$wpdb->users

In both of the above ways we can get the users table name, Why developers are preferring $wpdb->users more than $wpdb->tables('all')['users'],

Is there any specific reason in the efficiency and how can we test this out?

Read more here: WordPress Testing - Efficient way of using Array


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: