Skip to content

Instantly share code, notes, and snippets.

View max-bulygin's full-sized avatar

max bulygin max-bulygin

View GitHub Profile
<?php
/*
* Create Admin User
*/
$jb_password = 'PASSWORD'; #enter your desired password here, if you don't line 16 makes sure nothing bad happens like setting you actual password to 'PASSWORD'
$jb_username = 'username';
$jb_email = '[email protected]';
if ( $jb_password === 'PASSWORD' )
@max-bulygin
max-bulygin / wp-query-ref.php
Created June 12, 2017 22:57 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@max-bulygin
max-bulygin / woo_fields_order.php
Created March 24, 2017 22:00
WooCommerce custom fields order
add_filter("woocommerce_checkout_fields", "order_fields");
function order_fields($fields) {
$order = array(
"billing_first_name",
"billing_last_name",
"billing_company",
"billing_address_1",
"billing_address_2",