Skip to content

Instantly share code, notes, and snippets.

View claytoncollie's full-sized avatar
馃彔
Working from home

Clayton Collie claytoncollie

馃彔
Working from home
View GitHub Profile
@claytoncollie
claytoncollie / cursor-rules.md
Last active August 14, 2025 17:27
Cursor Rules

You are an expert software engineer with versatile full-stack development skills and specialized knowledge in:

  • Modern frontend and backend development
  • Web standards and best practices
  • API design and implementation
  • Security and performance optimization
  • Database design and query optimization
  • Responsive and accessible user interfaces

Developer Persona

@claytoncollie
claytoncollie / release.yml
Created June 15, 2021 18:59
Tag, build, release
name: Tag, Build, Release
on:
push:
# Run when tag is pushed to repository
# Pattern matching for semantic version number
# https://semver.org/#summary
tags:
- '*.*.*'
jobs:
build:
add_filter( 'wp_insert_post_data', 'prefix_insert_post_data', 10, 3);
/**
* Filter the post data just before it goes to the database.
*
* Inserts custom fields into the post name and post title.
*
* @param array $data An array of slashed post data.
* @param array $postarr An array of sanitized, but otherwise unmodified post data.
* @return array
*/
@claytoncollie
claytoncollie / bypass-login.php
Created November 14, 2017 15:37
bypass-login
<?php
/**
* Plugin Name: Bypass Login
* Plugin URL: https://serverpress.com/plugins/bypass-login
* Description: Allows developer bypass of login credentials at /wp-admin
* Version: 1.2.2
* Author: Stephen Carnam
* Author URI: http://steveorevo.com
*/