Skip to content

Instantly share code, notes, and snippets.

View stefanpejcic's full-sized avatar
:octocat:
Live long and may the source be with you

Stefan Pejcic stefanpejcic

:octocat:
Live long and may the source be with you
View GitHub Profile
/assets/banner-772x250.(jpg|png)
/assets/banner-1544x500.(jpg|png)
/assets/banner-1880x609.(jpg|png)
/assets/icon-128x128.(gif|jpg|png)
/assets/icon-256x256.(gif|jpg|png)
https://www.youtube.com/watch?v=1234567890
[youtube https://www.youtube.com/watch?v=1234567890]
> This is multi-line boxed text
> This is multi-line boxed text
> This is multi-line boxed text
<img src="http://example.com/image.jpg" alt="An amazing image" />
=== WPorb: Awesome Plugin ===
Plugin Name: Awesome Plugin (WPorb)
Plugin URI: https://wporb.com/awesome-plugin/
This is unordered list:
* Candy.
* Gum.
* Booze.
and so is this:
+ Candy.
+ Gum.
+ Booze.
1. Red
2. Green
3. Blue
Output:
<ol>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
@stefanpejcic
stefanpejcic / gist:96013d05fb61f964cb68d227417c291c
Created July 20, 2019 20:21
Disable author pages in WordPress
//Check if it is author page
function remove_author_pages_page() {
if ( is_author() ) {
//trigger 404 page
global $wp_query;
$wp_query->set_404();
status_header( 404 );
}
}