Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('admin_init', function () {
- global $wpdb;
- $rows = $wpdb->get_var("
- SELECT TABLE_ROWS
- FROM INFORMATION_SCHEMA.TABLES
- WHERE TABLE_SCHEMA = '{$wpdb->dbname}' AND TABLE_NAME = '{$wpdb->posts}'
- ");
- glsr_log()->once('info', $wpdb->posts, sprintf('%s rows: %s', $wpdb->posts, $rows));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement