Skip to content

Instantly share code, notes, and snippets.

View philipnewcomer's full-sized avatar
👨‍💻
"Things aren’t always #000000 and #FFFFFF." — undefined

Philip Newcomer philipnewcomer

👨‍💻
"Things aren’t always #000000 and #FFFFFF." — undefined
View GitHub Profile
@Ovsyanka
Ovsyanka / ruleset.xml
Last active February 20, 2020 11:10 — forked from gsherwood/ruleset.xml
PSR2 with tabs instead of spaces and bracers on the end of lines
<?xml version="1.0"?>
<ruleset name="MyStandard">
<description>
PSR2 with changes:
* tabs instead of spaces (https://gist.github.com/gsherwood/9d22f634c57f990a7c64)
* bracers on end of line instead new line
</description>
<!-- tabs -->
<arg name="tab-width" value="4"/>
@danielbachhuber
danielbachhuber / gist:7126249
Last active September 5, 2024 01:44
Include posts from authors in the search results where either their display name or user login matches the query string
<?php
/**
* Include posts from authors in the search results where
* either their display name or user login matches the query string
*
* @author danielbachhuber
*/
add_filter( 'posts_search', 'db_filter_authors_search' );
function db_filter_authors_search( $posts_search ) {