Blog

WP Plugin GraphQL React

User Create wordpress plug-in to create custom post type and then use react to get content with graph ql Assistant Here's a step-by-step guide to create a **WordPress plugin** that: 1. Registers a **Custom Post Type (CPT)**. 2. Exposes it to the **GraphQL schema** via WPGraphQL. 3. Uses **React** to fetch and display that content […]

Merchant URL in HPP

User /*jslint browser:true */ Element.prototype.remove = function() { this.parentElement.removeChild(this); }; NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { for(var i = this.length – 1; i >= 0; i–) { if(this[i] && this[i].parentElement) { this[i].parentElement.removeChild(this[i]); } } What is merchant url }; var RealexHpp = (function () { 'use strict'; var hppUrl = "https://pay.realexpayments.com/pay"; var allowedHppUrls = [ […]

Vuetify carousel implementation

User <script> import { ref, onMounted,watchEffect,watch } from 'vue'; import { useLoadingStore } from "@/stores/loading"; const loadingStore = useLoadingStore(); const expandedPosts = ref({}); const sources = ref([ { label: "Mozilla Blog", value: "https://blog.mozilla.org/wp-json/wp/v2/posts?_embed" }, { label: "Sony Music", value: "https://www.sonymusic.com/wp-json/wp/v2/posts?_embed" }, { label: "PostMymeds", value: "https://postmymeds.co.uk/wp-json/wp/v2/posts?_embed" }, { label: "Connacht Tribune", value: "https://connachttribune.ie/wp-json/wp/v2/posts?_embed" } ]); […]

PDF Invoice Optimization

User add_filter('pdf_template_table_headings','pdf_invoice_head',999,2); function pdf_invoice_head($header, $order_id ){ //CHANGE DATE HERE AND BELOW y-m-d $date2 = strtotime('2021-11-24'); $orderedDate = strtotime(get_post_meta($order_id,'_dispensed_date',TRUE )); if($orderedDate < $date2 ){ $headers = '' . esc_html__('Medication details:', 'woocommerce-pdf-invoice') . '' . '' . '' . '' . '' . esc_html__( 'Medication', 'woocommerce-pdf-invoice' ) . '' . '' . esc_html__( 'Quantity', 'woocommerce-pdf-invoice' ) . […]

WooCommerce PDF Customization

User add_filter('pdf_template_table_headings','pdf_invoice_head',999,2); function pdf_invoice_head($header, $order_id ){ //CHANGE DATE HERE AND BELOW y-m-d $date2 = strtotime('2021-11-24'); $orderedDate = strtotime(get_post_meta($order_id,'_dispensed_date',TRUE )); if($orderedDate < $date2 ){ $headers = '' . esc_html__('Medication details:', 'woocommerce-pdf-invoice') . '' . '' . '' . '' . '' . esc_html__( 'Medication', 'woocommerce-pdf-invoice' ) . '' . '' . esc_html__( 'Quantity', 'woocommerce-pdf-invoice' ) . […]

Deployment Process and Docs

User Deploying will be after all task done at our demo server and also after verified by client at our server I'll share deployment to live after all task done with proper docx because it is a db related operations Correct above Assistant Here’s a corrected and professional version of your sentence: **"Deployment to the […]

User Profile Update Code

User <script> import { ref,computed,onMounted,inject,watchEffect } from 'vue' import {useDisplay} from 'vuetify' import { useUserStore } from '@/stores/userStores' import {getUserInfo,updateProfileData,updateUserPassword} from '@/dbstore/firebase/userService' import {useLoadingStore} from '@/stores/loading' import SnackBar from '@/components/SnackBar.vue' const loadingStore = useLoadingStore() const userStore = useUserStore() const tab = ref('option-1') const {mdAndUp} = useDisplay() console.log(mdAndUp) const tabDirection = computed(() => mdAndUp.value ? 'vertical' […]

EC2 site not reachable

User ec2-16-171-53-169.eu-north-1.compute.amazonaws.com This site cantot be reached Assistant If `ec2-16-171-53-169.eu-north-1.compute.amazonaws.com` is showing the error **“This site can’t be reached”**, here are some common causes and steps to troubleshoot it: — ### ✅ 1. **Check EC2 Instance Status** – Go to your AWS **EC2 Dashboard**. – Confirm that the instance is: – ✅ **Running** – ✅ […]

Reset MySQL Root Password

User i have forget mysql root password aws ec2 Assistant To reset the MySQL root password on your AWS EC2 instance, follow these steps. This assumes you're using Ubuntu (which you are, as per earlier context) and have SSH access: — ### ✅ Step-by-Step: Reset MySQL Root Password on AWS EC2 (Ubuntu) #### 1. **SSH […]

React WordPress Theme Setup

User Create WordPress theme with react "npm create vite@latest my-app — –template react" Assistant To **create a WordPress theme using React** (with Vite for modern development) and integrate it properly with WordPress, follow these steps: — ### ✅ 1. **Create the React App using Vite** In your terminal: npm create vite@latest my-app — –template react […]