MemberPress: Add Address Column to Subscriptions Table

add_filter( ‘mepr-admin-subscriptions-cols’, function( $cols ) { $cols[‘col_address’] = __( ‘Address’, ‘memberpress’ ); return $cols; }); add_action( ‘mepr-admin-subscriptions-cell’, function( $column_name, $rec, $table, $attributes ) { if( $column_name === ‘col_address’ ) { $user = new MeprUser( ( int ) $rec->user_id ); $address_one…Continue reading

Warranty Product Google Sheet Scripts

const clientId = “913975986247-4v5j5nhs493nnnolshuq6lt5lr1n3mkq.apps.googleusercontent.com”; const clientSecrect = “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”; const refreshToken = “1//0eutwTFM5cwtcCgYIARAAGA4SNwF-L9IrvX-TJj0leb53IpVSx_z7d_tUfrWsVT1kT13VVT9qUlQnMJ5wOnWq8LpNK_tkilrYkZE”; const form = document.getElementById(“warranty-search-form”); const resultsContainer = document.getElementById(“warranty-result”); if(form) { form.addEventListener(“submit”, async (e) => { e.preventDefault(); if(grecaptcha.getResponse() !== “”){ resultsContainer.innerHTML = ‘ ‘; const searchInput = document.getElementById(“warranty-serial-input”); //…Continue reading