Site-Wide Hero Optimisation

/** * Promote the hero image (LCP) site-wide: * – fetchpriority=”high”, loading=”eager” * – remove lazy markers from LiteSpeed/Smush * – inject in * Works on every page using the shared hero structure. */ add_action( ‘wp_head’, function () { ?>Continue reading

MemberPress: Get All the Sub-Accounts Data Under a Corporate Parent User

function display_sub_account_users() { $user = MeprUtils::get_currentuserinfo(); $sub_user_ids = array(); $output = ”; if ($user !== false) { $transactions = $user->active_product_subscriptions(‘transactions’); if (!empty($transactions)) { foreach ($transactions as $txn) { if (($sub = $txn->subscription()) !== false) { // Recurring subscription $ca =…Continue reading