prefix . 'aioseo_posts'; $row = $wpdb->get_row( $wpdb->prepare( 'SELECT robots_default, robots_noindex FROM %i WHERE post_id = %d', $table, $post_id ), ARRAY_A ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching -- read-only SELECT against another plugin's own custom table (WP_Query cannot reach it); one-shot read during import/conflict detection, so caching would only serve stale data. Table name goes through prepare()'s %i identifier placeholder. if ( ! is_array( $row ) || ! empty( $row['robots_default'] ) ) { return false; } return ! empty( $row['robots_noindex'] ); } }