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:
I hereby claim:
To claim this, I am signing this object:
/* | |
!.gitignore | |
!app/ | |
!skin/ | |
app/* | |
!app/code | |
app/code/* | |
!app/code/local | |
!app/code/community |
<?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) { |
# 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/* |
<?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() ) { |