Skip to content

Instantly share code, notes, and snippets.

View jonathanjanssens's full-sized avatar

Jonathan Janssens jonathanjanssens

View GitHub Profile

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:

@jonathanjanssens
jonathanjanssens / .gitignore
Created March 9, 2017 10:51
Magento .gitignore
/*
!.gitignore
!app/
!skin/
app/*
!app/code
app/code/*
!app/code/local
!app/code/community
@jonathanjanssens
jonathanjanssens / wp-get-post-thumbnail-url.php
Created July 14, 2016 14:04
Wordpress get post thumbnail url
<?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 July 5, 2016 15:00 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
# 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 December 17, 2015 12:27
Add schema to yoast seo breadcrumbs
<?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() ) {