Skip to content

Instantly share code, notes, and snippets.

Panos 11digitlabs

Block or report user

Report or block 11digitlabs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@11digitlabs
11digitlabs / index.php
Created Jul 26, 2019
WordPress Rewrite Rules Vars
View index.php
<?php
add_action( 'init', array( $this, 'init' ), 100 );
add_filter( 'query_vars', array( $this, 'query_vars' ), 100 );
function init() {
add_rewrite_rule( 'profile/(.+?)', 'index.php?profile_username=$matches[1]', 'top' );
}
function query_vars( $query_vars ) {
@11digitlabs
11digitlabs / style.css
Last active Nov 24, 2016
app.codeable.io Style (stylish chrome plugin)
View style.css
/* i really want this to be global */
nav.navigation {
max-height: 2.5rem;
}
nav .navigation-image {
height: 4rem;
padding: 1rem 1rem 2rem 0;
vertical-align: top;
}
nav .navigation-link {
You can’t perform that action at this time.