Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am jonathanjanssens on github.
  • I am 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
View wp-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 / .gitignore
Last active Jul 5, 2016 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
View .gitignore
# Originally from
# Ignore everything in the root except the "wp-content" directory.
# Ignore everything in the "wp-content" directory, except the "plugins",
# "mu-plugins" and "themes" directories.
jonathanjanssens / functions.php
Created Dec 17, 2015
Add schema to yoast seo breadcrumbs
View functions.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() ) {