Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Janssens jonathanjanssens

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jonathanjanssens on github.
  • I am jtnjns (https://keybase.io/jtnjns) on keybase.
  • I have a public key whose fingerprint is FBCA 83F2 F95A 309D D773 F570 503F 6668 C4C3 866D

To claim this, I am signing this object:

View .gitignore
/*
!.gitignore
!app/
!skin/
app/*
!app/code
app/code/*
!app/code/local
!app/code/community
View wp-get-post-thumbnail-url.php
<?php
/**
* Return the post thumbnail URL
*
* @param string $size thumbnail size name
* @param \WP_Post|int $post wordpress post object
* @return string|boolean the post thumbnail url, the fallback url or false
*/
function get_post_thumbnail_url($size = 'post-thumbnail', $post = null) {
@jonathanjanssens
jonathanjanssens / .gitignore
Last active Jul 5, 2016 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
View .gitignore
# Originally from https://gist.github.com/redoPop/444295
# Ignore everything in the root except the "wp-content" directory.
/*
!.gitignore
!wp-content/
# Ignore everything in the "wp-content" directory, except the "plugins",
# "mu-plugins" and "themes" directories.
wp-content/*
@jonathanjanssens
jonathanjanssens / functions.php
Created Dec 17, 2015
Add schema to yoast seo breadcrumbs
View functions.php
<?php
/**
* Add schema to yoast seo breadcrumb
*/
add_filter('wpseo_breadcrumb_links', 'jj_add_crumb_schema', 10, 1);
function jj_add_crumb_schema($crumbs) {
if ( ! is_array( $crumbs ) || $crumbs === array() ) {
You can’t perform that action at this time.