Amit Shaw

Skills

What I’ve used on real client work since 2022, and what I did with it. Code samples are below in the technical notes.

100+
websites worked on
50+
tools and services
10+
own Astro themes
7
public repos on GitHub

Languages and platforms

PHP

Themes, plugins, custom functionality, integrations

JavaScript

Vanilla JS, fetch, filters and “load more”, small UI behaviour; jQuery on older sites

HTML and CSS

Responsive layouts, mobile headers, accessibility fixes

SQL (MySQL / MariaDB)

WordPress databases, clean-ups, imports, infected-data removal

WordPress

Custom and child themes, block themes, theme.json, custom post types and taxonomies, ACF, REST API, AJAX, WP-CLI

Used on: PCI Centers, Jakle Law, SuperiorPI, Triangle Pump

WooCommerce

Full store build, custom product options and pricing, shipping, order emails, checkout fixes

Used on: Sticker Orchard, Desi Celebrations

Astro

10+ ready-to-install themes and this site; static HTML, fast by default, content from a dashboard

Shopify

Theme setup, product pages, Shopify Payments

Custom themes

Built from scratch from Figma and Adobe XD designs: classic themes, block themes (theme.json, full site editing) and child themes

Used on: Jakle Law, 1-800-234-RIDE, Landegger, EDTL

Page builders and editors

Elementor and Elementor Pro (with ElementsKit, Essential Addons, Ultimate Addons), Divi, WPBakery, Beaver Builder, Gutenberg (with Stackable, CoBlocks, Ultimate Blocks), Classic Editor

CMS

WordPress, Shopify, headless WordPress, Sanity, Keystatic

Integrations

Payments

Stripe, Checkout.com, PayPal, Square, Razorpay, WooCommerce Payments

Booking and CRM

Calendly, Thryv, HubSpot, Constant Contact

Email

SendGrid, Brevo, Mailchimp, Klaviyo, SMTP, SPF / DKIM / DMARC

Forms

Contact Form 7, Gravity Forms, Formidable, WPForms, reCAPTCHA

Used on: PCI Centers, Triangle Pump, 95 Express, Foley Bezek

Events and tickets

Events Manager, Event Tickets, sold-out rules, PDF tickets

Used on: PCI Centers, Odd Fellows Home of California, VR Bar

Hosting and tools

Hosting

cPanel, Plesk, hPanel, WP Engine, SiteGround, GoDaddy, IONOS, HostDime, AWS

Cloudflare

DNS, CDN, SSL, protection

Used on: PCI Centers, SuperiorPI, 95 Express

Migrations

Host to host, staging to live, DNS cut-over, SSL and mixed content

Dev tools

VS Code with AI agents, Git and GitHub, FileZilla / SFTP, browser DevTools, phpMyAdmin, WP-CLI

Team tools

Teamwork, Slack, Markup.io, Heurio, Adobe XD, Figma

Speed, SEO and security

Performance

Core Web Vitals, PageSpeed Insights, LiteSpeed Cache, W3 Total Cache, WP Rocket, NitroPack

SEO

Search Console, Yoast, Rank Math, schema, sitemaps, redirects, llms.txt

Security

Malware clean-up, Wordfence, Sucuri, hardening, backups and restores

Accessibility

Keyboard access, contrast, headings, ADA-related fixes

AI and machine learning

Claude

Coding agent and pair programmer; planning, debugging and review

ChatGPT

Working through problems step by step, drafting and checking

Gemini

Gemini API for image generation; research

LLM APIs

Calling models from WordPress plugins, server-side keys

Python and Colab

TensorFlow / Keras coursework: image and text models, Gradio demos

Plugins & code

My own work on GitHub. On the WordPress sites I built over the last year, about 80% of the plugins running are custom plugins I wrote; the rest are standard SEO and backup plugins.

Astro themes

Astro

10+ Astro themes

Complete, ready-to-install themes built for speed: static HTML, very little JavaScript, and every page’s content editable from a dashboard. Each theme works with all three dashboards.

Astro

3 content dashboards

Three dashboards the themes can run on: WordPress used headless, Sanity and Keystatic, so editors keep the admin they know while visitors get a static site.

Why Astro

Speed first

Pages are built ahead of time into plain HTML, so they load almost instantly and there’s very little to attack or update. This portfolio is built the same way.

Dashboards: WordPress (headless) · Sanity · Keystatic

GitHub repositories

Personal Outreach

My largest WordPress plugin, about 64k lines of PHP and 48k lines of TypeScript/React: a modular kernel with 15 modules, a persistent job queue with retries, IMAP reply tracking, and sequences that stop on reply, unsubscribe or bounce.

Versioned REST API, WP-CLI commands, encrypted credentials, audit log, GDPR export and erase. React + TypeScript admin built with @wordpress/scripts. Free; a paid front-end sending form is planned.

  • PHP
  • React + TypeScript
  • REST API
  • WP-CLI
View code on GitHub: Personal Outreach (opens in a new tab) →

SEO Fixer

SEO plugin with a 0–100 health score, plain-English issues and one-click fixes with undo; sitemaps, schema, redirects, a 404 log and imports from Yoast, Rank Math and AIOSEO. Background batch scanning tested on 5,000 pages.

  • PHP
  • Batch processing
  • Schema
  • Redirects
View code on GitHub: SEO Fixer (opens in a new tab) →

AI projects

Medium and advanced projects are coming next; links will appear when they’re live. Below them, the practice notebooks from my AI and machine learning course, all on GitHub.

Building now

In progress

RAG API

A retrieval-augmented generation API: answers questions from my own documents, building on the RAG document chatbot in my practice notebooks.

Retrieval · embeddings · API

In progress

MCP server

A Model Context Protocol server so an AI assistant can work with real tools and data, with permissions kept tight.

Model Context Protocol

In progress

AI agents

Small agents that plan and use tools to finish a task, with a person approving anything that matters.

LLM APIs · tool use

Practice notebooks (40 in total)

CNN blood-cell classifier

Image classification of blood cell types with a convolutional network.

Python, CNN

CIFAR-10

Image classification on the CIFAR-10 dataset.

Python

LSTM text generation

Generating text one word at a time with an LSTM.

Python, LSTM

Small PyTorch Transformer

A small Transformer built in PyTorch.

PyTorch

GPT-2 fine-tuning

Fine-tuning GPT-2 on my own text.

Python, GPT-2

RAG document chatbot

Answers questions from documents using retrieval, with a Gradio interface.

sentence-transformers, FAISS, Gradio

Whisper

Speech-to-text transcription.

Python, Whisper

Real-ESRGAN

Image upscaling.

Python, Real-ESRGAN

Technical notes

Short explanations of things I use on real projects, with a small code example each. Open any note.

Hooks, priorities and accepted arguments

do_action() and apply_filters() fire a hook; add_action() and add_filter() attach my function to it. The third argument is priority, default 10, and lower numbers run first. The fourth argument is how many arguments my function accepts, default 1.

// save_post passes 3 args. Ask for all 3.
add_action( 'save_post', 'myprefix_on_save', 10, 3 );
function myprefix_on_save( $post_id, $post, $update ) {
    if ( wp_is_post_revision( $post_id ) || ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) ) {
        return;
    }
    if ( $update && 'post' === $post->post_type ) {
        delete_transient( 'myprefix_latest_posts' );
    }
}

// Run later than most other code (20) and receive 2 args.
add_filter( 'the_title', 'myprefix_title_label', 20, 2 );
function myprefix_title_label( $title, $post_id ) {
    if ( 'event' === get_post_type( $post_id ) ) {
        $title .= ' (' . esc_html__( 'Event', 'myprefix' ) . ')';
    }
    return $title;
}

Example of the approach

Custom post types and taxonomies

I call register_post_type() and register_taxonomy() on the init hook. The important arguments are labels, public, has_archive, rewrite, supports, show_in_rest, and the capability settings. show_in_rest => true is needed for the block editor and for the REST API.

add_action( 'init', 'amitex_register_post_types' );

function amitex_register_post_types() {
	register_post_type( 'amitex_event', array(
		'labels'       => array(
			'name'          => __( 'Events', 'amit-example' ),
			'singular_name' => __( 'Event', 'amit-example' ),
		),
		'public'       => true,
		'has_archive'  => true,
		'rewrite'      => array( 'slug' => 'events', 'with_front' => false ),
		'show_in_rest' => true,
		'rest_base'    => 'events',
		'supports'     => array( 'title', 'editor', 'thumbnail', 'excerpt', 'custom-fields' ),
		'menu_icon'    => 'dashicons-calendar-alt',
		'map_meta_cap' => true,
	) );

	register_taxonomy( 'amitex_event_type', array( 'amitex_event' ), array(
		'labels'            => array( 'name' => __( 'Event Types', 'amit-example' ) ),
		'hierarchical'      => true,
		'show_in_rest'      => true,
// ...

Example of the approach

Custom database tables with dbDelta()

I build a CREATE TABLE statement with $wpdb->prefix and $wpdb->get_charset_collate(), load wp-admin/includes/upgrade.php, and pass it to dbDelta(). dbDelta() compares the SQL with the existing table and adds missing columns and indexes. I save a schema version in an option and re-run the install on plugins_loaded when the version changes, because activation does not run on updates.

define( 'AMITEX_DB_VERSION', '1.1' );

function amitex_install_tables() {
	global $wpdb;
	$table   = $wpdb->prefix . 'amitex_tickets';
	$charset = $wpdb->get_charset_collate();

	$sql = "CREATE TABLE $table (
  id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  event_id bigint(20) unsigned NOT NULL,
  email varchar(190) NOT NULL,
  qty smallint(5) unsigned NOT NULL DEFAULT 1,
  created_at datetime NOT NULL,
  PRIMARY KEY  (id),
  KEY event_id (event_id)
) $charset;";

	require_once ABSPATH . 'wp-admin/includes/upgrade.php';
	dbDelta( $sql );
	update_option( 'amitex_db_version', AMITEX_DB_VERSION );
}

// ...

Example of the approach

AJAX in WordPress, with a nonce

The JavaScript sends a POST request to admin-ajax.php with an action parameter and a nonce. WordPress then fires wp_ajax_{action} for logged-in users and wp_ajax_nopriv_{action} for logged-out users. My handler checks the nonce with check_ajax_referer(), checks capability if needed, sanitizes input, and replies with wp_send_json_success() or wp_send_json_error().

add_action( 'wp_enqueue_scripts', function () {
	wp_enqueue_script( 'amitex-load-more', plugins_url( 'js/load-more.js', __FILE__ ), array(), '1.0.0', true );
	wp_localize_script( 'amitex-load-more', 'amitexAjax', array(
		'url'   => admin_url( 'admin-ajax.php' ),
		'nonce' => wp_create_nonce( 'amitex_load_more' ),
	) );
} );

add_action( 'wp_ajax_amitex_load_more', 'amitex_load_more' );
add_action( 'wp_ajax_nopriv_amitex_load_more', 'amitex_load_more' );

function amitex_load_more() {
	check_ajax_referer( 'amitex_load_more', 'nonce' );

	$page  = isset( $_POST['page'] ) ? absint( $_POST['page'] ) : 1;
	$query = new WP_Query( array(
		'post_type'      => 'post',
		'post_status'    => 'publish',
		'posts_per_page' => 6,
		'paged'          => $page,
	) );

// ...

Example of the approach

A secure custom REST route

I call register_rest_route() on the rest_api_init hook with a namespace like amitex/v1, a route, methods, a callback, a permission_callback, and args. The permission_callback checks who is allowed, and args define types, required fields, validation, and sanitization. The callback returns data with rest_ensure_response() or a WP_Error with an HTTP status.

add_action( 'rest_api_init', function () {
	register_rest_route( 'amitex/v1', '/events/(?P<id>\d+)/tickets', array(
		array(
			'methods'             => WP_REST_Server::READABLE,
			'callback'            => 'amitex_rest_get_tickets',
			'permission_callback' => '__return_true', // public on purpose
			'args'                => array(
				'id' => array( 'type' => 'integer', 'required' => true, 'minimum' => 1 ),
			),
		),
		array(
			'methods'             => WP_REST_Server::CREATABLE,
			'callback'            => 'amitex_rest_create_ticket',
			'permission_callback' => function () {
				return current_user_can( 'edit_posts' );
			},
			'args'                => array(
				'email' => array(
					'type'              => 'string',
					'format'            => 'email',
					'required'          => true,
					'validate_callback' => 'rest_validate_request_arg',
// ...

Example of the approach

Custom WooCommerce pricing by size

I add a field on the product page, validate it, store it in the cart item with woocommerce_add_cart_item_data, set the price in woocommerce_before_calculate_totals, show it in the cart with woocommerce_get_item_data, and save it to the order line item with woocommerce_checkout_create_order_line_item. The price is always calculated on the server from a fixed table, never taken from the browser.

<?php
function amt_sticker_sizes() {
	return array(
		'2x2' => array( 'label' => '2 x 2 in', 'price' => 3.00 ),
		'3x3' => array( 'label' => '3 x 3 in', 'price' => 4.50 ),
		'4x4' => array( 'label' => '4 x 4 in', 'price' => 6.00 ),
	);
}

// 1. Field on the product page.
add_action( 'woocommerce_before_add_to_cart_button', function () {
	echo '<label for="amt_size">' . esc_html__( 'Size', 'amt' ) . '</label> <select name="amt_size" id="amt_size" required>';
	foreach ( amt_sticker_sizes() as $key => $size ) {
		printf( '<option value="%s">%s</option>', esc_attr( $key ), esc_html( $size['label'] ) );
	}
	echo '</select>';
} );

// 2. Validate.
add_filter( 'woocommerce_add_to_cart_validation', function ( $passed ) {
	$size = isset( $_POST['amt_size'] ) ? sanitize_key( wp_unslash( $_POST['amt_size'] ) ) : '';
	if ( ! array_key_exists( $size, amt_sticker_sizes() ) ) {
// ...

Example of the approach

WooCommerce order emails that send

For small changes I use email hooks like woocommerce_email_before_order_table and check $email->id so I only change one email. For bigger layout changes I override the email template in the child theme. When emails don't send, I check if the email is enabled, if the order status actually changed, and if wp_mail itself works, which is usually fixed with an authenticated SMTP or API service.

<?php
// Add a message only to the customer "processing" email.
add_action( 'woocommerce_email_before_order_table', 'amt_processing_email_note', 10, 4 );
function amt_processing_email_note( $order, $sent_to_admin, $plain_text, $email ) {
	if ( 'customer_processing_order' !== $email->id ) {
		return;
	}
	$text = __( 'We will email you a proof of your stickers within 24 hours.', 'amt' );
	if ( $plain_text ) {
		echo esc_html( $text ) . "\n\n";
	} else {
		echo '<p>' . esc_html( $text ) . '</p>';
	}
}

// Log mail failures so you can see the real error.
add_action( 'wp_mail_failed', function ( $error ) {
	if ( function_exists( 'wc_get_logger' ) ) {
		wc_get_logger()->error( $error->get_error_message(), array( 'source' => 'amt-mail' ) );
	}
} );

Example of the approach

SPF, DKIM and DMARC for site email

SPF is a DNS record that lists which servers can send mail for a domain. DKIM adds a signature to each email that receivers check with a public key in DNS. DMARC tells receivers what to do when SPF or DKIM fail or don't match the From domain, and sends reports. To fix delivery, I send from the site's own domain through an authenticated service, set up all three records, and put the visitor's email in Reply-To, not in From.

; DNS records (example values; copy the real ones from your provider's dashboard)
example.com.                 TXT    "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
s1._domainkey.example.com.   CNAME  s1.domainkey.u1234567.wl123.sendgrid.net.
_dmarc.example.com.          TXT    "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com"

Example of the approach

Cleaning malware from WordPress files

First I take a full backup and lock the attacker out by changing hosting and admin passwords. Then I replace WordPress core with a fresh copy of the same version, reinstall plugins and themes from official sources, and hunt for backdoors in the files that are left. After that I clean the database, rescan, and rotate all passwords and salts again.

cd /home/user/public_html

# 1. Backup (even if infected)
wp db export ../backup-infected.sql --skip-plugins --skip-themes
tar -czf ../files-infected.tar.gz .

# 3. Check core and plugin files against wordpress.org checksums
wp core verify-checksums --include-root --skip-plugins --skip-themes
wp plugin verify-checksums --all --skip-plugins --skip-themes

# 4. Replace core with the same version
VERSION=$(wp core version --skip-plugins --skip-themes)
rm -rf wp-admin wp-includes
wp core download --version="$VERSION" --skip-content --force

# 5. Reinstall a plugin from wordpress.org (repeat per plugin)
wp plugin install contact-form-7 --force --skip-plugins --skip-themes

Example of the approach

Safe search-and-replace in migrations

WordPress stores arrays as PHP serialized strings, and each string records its exact length, like s:19:"http://old-site.com". If you replace the URL in a text editor, the length number becomes wrong and PHP cannot unserialize the value, so widgets, theme options and builder settings disappear. I use wp search-replace, which unserializes, replaces and serializes again with correct lengths.

# 1. Dry run: see what would change
wp search-replace 'https://old-site.com' 'https://new-site.com' \
  --all-tables-with-prefix --skip-columns=guid --precise --report-changed-only --dry-run

# 2. Run it for real (after a backup)
wp db export before-replace.sql
wp search-replace 'https://old-site.com' 'https://new-site.com' \
  --all-tables-with-prefix --skip-columns=guid --precise --report-changed-only

# 3. JSON-escaped URLs used by page builders
wp search-replace 'https:\/\/old-site.com' 'https:\/\/new-site.com' \
  --all-tables-with-prefix --skip-columns=guid --precise

# Alternative: write the replaced result to a new SQL file, do not touch the live DB
wp search-replace 'https://old-site.com' 'https://new-site.com' --skip-columns=guid --export=replaced.sql

wp cache flush && wp rewrite flush

Example of the approach

Core Web Vitals on WordPress

Core Web Vitals are three Google metrics for real user experience: LCP (loading), INP (responsiveness) and CLS (visual stability). Good scores are LCP 2.5 seconds or less, INP 200 milliseconds or less, and CLS 0.1 or less. INP replaced FID in March 2024.

// Hero image in a theme template: no lazy-load, high priority, real size.
echo wp_get_attachment_image(
    $hero_id,
    'large',
    false,
    array(
        'loading'       => false,  // do not add loading="lazy"
        'fetchpriority' => 'high', // WordPress 6.3+
        'class'         => 'hero-img',
    )
);

Example of the approach

"Load more" and filters without jQuery

I use plain JavaScript fetch() to call a REST endpoint (or admin-ajax) that runs a WP_Query for the next page or the selected filter, and returns the HTML. I append it to the list and hide the button when there are no more pages. Rendering HTML on the server keeps the same card markup as the first page.

add_action( 'rest_api_init', function () {
    register_rest_route( 'site/v1', '/posts', array(
        'methods'             => 'GET',
        'permission_callback' => '__return_true', // public, read-only
        'args'                => array(
            'page' => array( 'default' => 1, 'sanitize_callback' => 'absint' ),
            'cat'  => array( 'default' => 0, 'sanitize_callback' => 'absint' ),
        ),
        'callback'            => function ( WP_REST_Request $req ) {
            $q = new WP_Query( array(
                'post_type'      => 'post',
                'posts_per_page' => 6,
                'paged'          => max( 1, $req['page'] ),
                'cat'            => $req['cat'],
            ) );
            ob_start();
            while ( $q->have_posts() ) {
                $q->the_post();
                get_template_part( 'template-parts/card' );
            }
            wp_reset_postdata();
            return array( 'html' => ob_get_clean(), 'maxPages' => (int) $q->max_num_pages );
// ...

Example of the approach

How I use AI to code, and check its output

I use Claude and Claude Code, ChatGPT, Gemini and AI agents in VS Code every day, to draft code, explain unfamiliar code, find bugs and write boilerplate faster. But I never ship code I don't understand. I read every diff, check it for security problems, run it on staging, and test it before it goes live. I also never paste client passwords, API keys or customer data into AI tools.

# Check AI-written plugin code against WordPress coding standards.
composer require --dev wp-coding-standards/wpcs dealerdirect/phpcodesniffer-composer-installer
vendor/bin/phpcs --standard=WordPress wp-content/plugins/my-plugin/

# Review exactly what changed before committing.
git diff

Example of the approach

Hiring a WordPress or full-stack developer? Let’s talk.

Open to full-time roles · Remote (US or UK hours) or on-site in Kolkata.