Skip to content

Instantly share code, notes, and snippets.

💭
☕️+ 👨‍💻

Akshit Sethi akshitsethi

💭
☕️+ 👨‍💻
View GitHub Profile
View skyverge-improved-code.php
<?php
/**
* This code retrieves course data from an external API and displays it in the user's
* My Account area. A merchant has noticed that there's a delay when loading the page.
*
* 1) What changes would you suggest to reduce or remove that delay?
* 2) Is there any other code changes that you would make?
*/
public function add_my_courses_section() {
$api_user_id = get_user_meta( get_current_user_id(), '_external_api_user_id', true );
You can’t perform that action at this time.