- http://make.wordpress.org/core/
- http://make.wordpress.org/core/handbook/
- http://core.trac.wordpress.org/
Git mirror:
git clone https://github.com/WordPress/WordPress.git
Creating a patch:
git diff --no-prefix > ~/12345.patch
#! /bin/bash | |
# Author: Birgit Olzem aka @CoachBirgit | |
# Version: 1.0 | |
# Created on: January 19th 2022 | |
# Requires WP-CLI, cURL, wget | |
# credits for the origin idea to Jeremy Herve: https://jeremy.hu/dev-environment-laravel-valet-wp-cli/ | |
### How to use |
<?php | |
function mmk_rss_include( $query ) { | |
if (!$query->is_feed) | |
return $query; | |
$query->set( 'post_type' , array( 'post', 'YOUR_POST_TYPE_NAME' ) ); | |
return $query; |
<?php | |
/** | |
* Make BuddyPress Members page obey its Page layout setting | |
*/ | |
add_filter( 'genesis_pre_get_option_site_layout', 'sk_do_members_page_layout' ); | |
function sk_do_members_page_layout( $opt ) { | |
// if the current page is not the members directory, abort. | |
if ( ! bp_is_members_directory() ) { |
<?php | |
// loop through the sub-pages of your custom post type | |
$childpages = new WP_Query( array( | |
'post_type' => 'wpkb-article', | |
'post_parent' => $this_page, | |
'posts_per_page' => 100, | |
'orderby' => 'menu_order' | |
)); | |
while ( $childpages->have_posts() ) : $childpages->the_post(); ?> |
/* | |
* Mixins: | |
*/ | |
//make flex rows a bit easier: | |
@mixin flex-row( $equalize:stretch ){ | |
@include display(flex); | |
@include flex-direction(row); | |
@include align-items($equalize); | |
} |
<?php | |
class Yoast_GlotPress_SEO { | |
function __construct() { | |
add_filter( 'gp_title', array( $this, 'modify_title' ) ); | |
add_action( 'gp_head', array( $this, 'meta_desc' ), 9 ); | |
add_filter( 'gp_redirect_status', array( $this, 'modify_redirect_status' ), 10, 2 ); | |
} | |
module.exports = function( grunt ) { | |
'use strict'; | |
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks ); | |
grunt.initConfig({ | |
makepot: { | |
plugin1: { | |
options: { |
Git mirror:
git clone https://github.com/WordPress/WordPress.git
Creating a patch:
git diff --no-prefix > ~/12345.patch
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.